Update CraftBukkit to Minecraft 1.5.2

By: Travis Watkins <amaranth@ubuntu.com>
This commit is contained in:
CraftBukkit/Spigot
2013-04-27 04:40:05 -05:00
parent f06e7acda5
commit 9fdae1c35b
8 changed files with 21 additions and 17 deletions

View File

@@ -322,7 +322,7 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
}
public boolean isBlocking() {
return getHandle().bk(); // Should be isBlocking
return getHandle().isBlocking();
}
public boolean setWindowProperty(InventoryView.Property prop, int value) {

View File

@@ -50,7 +50,7 @@ public class CraftItemFrame extends CraftHanging implements ItemFrame {
public void setRotation(Rotation rotation) {
Validate.notNull(rotation, "Rotation cannot be null");
getHandle().b(toInteger(rotation)); // Should be setRotation
getHandle().setRotation(toInteger(rotation));
}
static int toInteger(Rotation rotation) {

View File

@@ -332,7 +332,7 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
}
public boolean hasLineOfSight(Entity other) {
return getHandle().aD().canSee(((CraftEntity) other).getHandle()); // az should be getEntitySenses
return getHandle().getEntitySenses().canSee(((CraftEntity) other).getHandle());
}
public boolean getRemoveWhenFarAway() {