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) {
|
if (weaponMaterial == null) {
|
||||||
weaponMaterial = Material.AIR;
|
weaponMaterial = Material.AIR;
|
||||||
}
|
}
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
ItemStack stack = weaponMaterial.getMaxDurability() > 0 ? new ItemStack(weaponMaterial, Math.abs(amount), (short)itemdata) : new ItemStack(weaponMaterial, Math.abs(amount));
|
ItemStack stack = weaponMaterial.getMaxDurability() > 0 ? new ItemStack(weaponMaterial, Math.abs(amount), (short)itemdata) : new ItemStack(weaponMaterial, Math.abs(amount));
|
||||||
insertChestData.setInt(1, id);
|
insertChestData.setInt(1, id);
|
||||||
insertChestData.setBytes(2, Utils.saveItemStack(stack));
|
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) {
|
public static int saveSpawnHeight(Location loc) {
|
||||||
final World world = loc.getWorld();
|
final World world = loc.getWorld();
|
||||||
final Chunk chunk = world.getChunkAt(loc);
|
final Chunk chunk = world.getChunkAt(loc);
|
||||||
|
Reference in New Issue
Block a user