forked from LogBlock/LogBlock
Ignore deprecation in updater + remove unused method
This commit is contained in:
@ -527,6 +527,7 @@ class Updater {
|
||||
if (weaponMaterial == null) {
|
||||
weaponMaterial = Material.AIR;
|
||||
}
|
||||
@SuppressWarnings("deprecation")
|
||||
ItemStack stack = weaponMaterial.getMaxDurability() > 0 ? new ItemStack(weaponMaterial, Math.abs(amount), (short)itemdata) : new ItemStack(weaponMaterial, Math.abs(amount));
|
||||
insertChestData.setInt(1, id);
|
||||
insertChestData.setBytes(2, Utils.saveItemStack(stack));
|
||||
|
@ -522,10 +522,6 @@ public class BukkitUtils {
|
||||
}
|
||||
}
|
||||
|
||||
public static short rawData(ItemStack item) {
|
||||
return item.getType() != null ? item.getData() != null ? item.getDurability() : 0 : 0;
|
||||
}
|
||||
|
||||
public static int saveSpawnHeight(Location loc) {
|
||||
final World world = loc.getWorld();
|
||||
final Chunk chunk = world.getChunkAt(loc);
|
||||
|
Reference in New Issue
Block a user