diff options
Diffstat (limited to 'src/main/java/net/minecraft/server/TileEntityPiston.java')
-rw-r--r-- | src/main/java/net/minecraft/server/TileEntityPiston.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/net/minecraft/server/TileEntityPiston.java b/src/main/java/net/minecraft/server/TileEntityPiston.java index ffc3286b..b0e0465b 100644 --- a/src/main/java/net/minecraft/server/TileEntityPiston.java +++ b/src/main/java/net/minecraft/server/TileEntityPiston.java @@ -29,7 +29,7 @@ public class TileEntityPiston extends TileEntity { return this.a; } - public int j() { + public int k() { return this.b; } @@ -59,7 +59,7 @@ public class TileEntityPiston extends TileEntity { AxisAlignedBB axisalignedbb = Block.PISTON_MOVING.b(this.world, this.x, this.y, this.z, this.a, f, this.c); if (axisalignedbb != null) { - List list = this.world.getEntities(null, axisalignedbb); + List list = this.world.getEntities((Entity) null, axisalignedbb); if (!list.isEmpty()) { h.addAll(list); @@ -79,22 +79,22 @@ public class TileEntityPiston extends TileEntity { public void g() { if (this.g < 1.0F && this.world != null) { this.g = this.f = 1.0F; - this.world.n(this.x, this.y, this.z); - this.i(); + this.world.q(this.x, this.y, this.z); + this.j(); if (this.world.getTypeId(this.x, this.y, this.z) == Block.PISTON_MOVING.id) { this.world.setTypeIdAndData(this.x, this.y, this.z, this.a, this.b); } } } - public void l_() { + public void q_() { if (this.world == null) return; // CraftBukkit this.g = this.f; if (this.g >= 1.0F) { this.a(1.0F, 0.25F); - this.world.n(this.x, this.y, this.z); - this.i(); + this.world.q(this.x, this.y, this.z); + this.j(); if (this.world.getTypeId(this.x, this.y, this.z) == Block.PISTON_MOVING.id) { this.world.setTypeIdAndData(this.x, this.y, this.z, this.a, this.b); } |