Ignore deprecation in updater + remove unused method

This commit is contained in:
Brokkonaut
2018-08-29 03:56:34 +02:00
parent 2faa9cbd6d
commit 8045ab1ecd
2 changed files with 1 additions and 4 deletions

View File

@ -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));

View File

@ -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);