diff --git a/paper-server/pom.xml b/paper-server/pom.xml index 6a75d754ca..57d133b8cd 100644 --- a/paper-server/pom.xml +++ b/paper-server/pom.xml @@ -4,7 +4,7 @@ org.bukkit craftbukkit jar - 1.4.6-R0.4-SNAPSHOT + 1.4.7-R0.1-SNAPSHOT CraftBukkit http://www.bukkit.org @@ -12,8 +12,8 @@ UTF-8 unknown 4.11 - 1.4.6 - 1_4_6 + 1.4.7 + 1_4_R1 diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftFirework.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftFirework.java index 863078f8bc..943ce856d9 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftFirework.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftFirework.java @@ -22,11 +22,11 @@ public class CraftFirework extends CraftEntity implements Firework { public CraftFirework(CraftServer server, EntityFireworks entity) { super(server, entity); - ItemStack item = getHandle().getDataWatcher().f(FIREWORK_ITEM_INDEX); + ItemStack item = getHandle().getDataWatcher().getItemStack(FIREWORK_ITEM_INDEX); if (item == null) { item = new ItemStack(Item.FIREWORKS); - getHandle().getDataWatcher().a(FIREWORK_ITEM_INDEX, item); // register + getHandle().getDataWatcher().watch(FIREWORK_ITEM_INDEX, item); } this.item = CraftItemStack.asCraftMirror(item); @@ -59,7 +59,7 @@ public class CraftFirework extends CraftEntity implements Firework { item.setItemMeta(meta); // Copied from EntityFireworks constructor, update firework lifetime/power - getHandle().b = 10 * (1 + meta.getPower()) + random.nextInt(6) + random.nextInt(7); + getHandle().expectedLifespan = 10 * (1 + meta.getPower()) + random.nextInt(6) + random.nextInt(7); getHandle().getDataWatcher().h(FIREWORK_ITEM_INDEX); // Update } diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 90abccefc9..f0e24d2f4f 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -948,11 +948,11 @@ public class CraftPlayer extends CraftHumanEntity implements Player { public void setMaxHealth(int amount) { super.setMaxHealth(amount); - getHandle().m(); // Update health + getHandle().triggerHealthUpdate(); } public void resetMaxHealth() { super.resetMaxHealth(); - getHandle().m(); // Update health + getHandle().triggerHealthUpdate(); } } diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftTameableAnimal.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftTameableAnimal.java index 0134bda7f0..f62d8bcbf6 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftTameableAnimal.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftTameableAnimal.java @@ -62,7 +62,7 @@ public class CraftTameableAnimal extends CraftAnimals implements Tameable, Creat } public void setSitting(boolean sitting) { - getHandle().q().a(sitting); + getHandle().getGoalSit().setSitting(sitting); } @Override diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java index 85835ca776..96bf95ff93 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java @@ -238,8 +238,8 @@ public final class CraftItemStack extends ItemStack { return 0; } if (size == 1) { - handle.tag.o(ENCHANTMENTS.NBT); - if (handle.tag.d()) { + handle.tag.remove(ENCHANTMENTS.NBT); + if (handle.tag.isEmpty()) { handle.tag = null; } return level; @@ -388,6 +388,6 @@ public final class CraftItemStack extends ItemStack { } static boolean hasItemMeta(net.minecraft.server.ItemStack item) { - return !(item == null || item.tag == null || item.tag.d()); + return !(item == null || item.tag == null || item.tag.isEmpty()); } }