mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Remove old depend, now only offical support 1.12.2+
Former-commit-id: 5be32cf6ff8027fce6e67ae160381c43507b03e6 [formerly 644fb8c3789a70657b8b06ce9b0d302cc674ab98] Former-commit-id: 7d27683b853753f43a47c56fe292df288aff5569
This commit is contained in:
1 parent
e5f5b967ef
commit
baa666669c
6 files changed
+2
-40
No files matched your search
@@ -20,6 +20,7 @@ import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause;
|
||||
import org.bukkit.inventory.Inventory;
|
||||
import org.bukkit.inventory.InventoryHolder;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.inventory.meta.Damageable;
|
||||
import org.maxgamer.quickshop.QuickShop;
|
||||
import org.maxgamer.quickshop.Database.DatabaseHelper;
|
||||
import org.maxgamer.quickshop.Util.MsgUtil;
|
||||
@@ -213,7 +214,7 @@ public class ContainerShop implements Shop {
|
||||
* @return The durability of the item
|
||||
*/
|
||||
public short getDurability() {
|
||||
return this.item.getDurability();
|
||||
return (short) ((Damageable)this.item.getItemMeta()).getDamage();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user