Update CraftBukkit to Minecraft 1.4.4.

By: Travis Watkins <amaranth@ubuntu.com>
This commit is contained in:
CraftBukkit/Spigot
2012-11-06 06:05:28 -06:00
parent f6c50c0851
commit 3f728bab1a
11 changed files with 25 additions and 192 deletions

View File

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

View File

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

View File

@@ -12,8 +12,8 @@ public abstract class CraftProjectile extends AbstractProjectile implements Proj
}
public LivingEntity getShooter() {
if (getHandle().shooter instanceof EntityLiving) {
return (LivingEntity) getHandle().shooter.getBukkitEntity();
if (getHandle().getShooter() instanceof EntityLiving) {
return (LivingEntity) getHandle().getShooter().getBukkitEntity();
}
return null;
@@ -22,6 +22,9 @@ public abstract class CraftProjectile extends AbstractProjectile implements Proj
public void setShooter(LivingEntity shooter) {
if (shooter instanceof CraftLivingEntity) {
getHandle().shooter = (EntityLiving) ((CraftLivingEntity) shooter).entity;
if (shooter instanceof CraftHumanEntity) {
getHandle().shooterName = ((CraftHumanEntity) shooter).getName();
}
}
}