Updated to Minecraft version 1.4

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
CraftBukkit/Spigot
2011-03-31 21:40:00 +01:00
parent 3669bb0d8b
commit adcc9c9ddf
14 changed files with 35 additions and 30 deletions

View File

@@ -158,7 +158,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
newEntity.health = entity.health;
newEntity.fireTicks = entity.fireTicks;
newEntity.inventory = entity.inventory;
newEntity.inventory.e = newEntity;
newEntity.inventory.d = newEntity;
newEntity.activeContainer = entity.activeContainer;
newEntity.defaultContainer = entity.defaultContainer;
newEntity.locX = location.getX();
@@ -194,14 +194,14 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
}
public void setSneaking(boolean sneak) {
getHandle().b(sneak);
getHandle().e(sneak);
}
public boolean isSneaking() {
return getHandle().U();
return getHandle().Z();
}
public void updateInventory() {
getHandle().l();
getHandle().m();
}
}

View File

@@ -22,7 +22,7 @@ public class CraftSheep extends CraftAnimals implements Sheep {
}
public DyeColor getColor() {
return DyeColor.getByData((byte) getHandle().n());
return DyeColor.getByData((byte) getHandle().o());
}
public void setColor(DyeColor color) {

View File

@@ -21,7 +21,7 @@ public class CraftSlime extends CraftLivingEntity implements Slime {
}
public int getSize() {
return getHandle().c;
return getHandle().m();
}
public void setSize(int size) {