summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/TileEntityPiston.java
diff options
context:
space:
mode:
authorNathan Adams <dinnerbone@dinnerbone.com>2012-03-01 10:49:23 +0000
committerNathan Adams <dinnerbone@dinnerbone.com>2012-03-01 14:38:31 +0000
commit543c4879fee3b7165764c5371d226c93fe3a657b (patch)
tree4fe9116464e1fe42a40dc3ba19b58234bd26f821 /src/main/java/net/minecraft/server/TileEntityPiston.java
parente9ca87000c1794715bc3fe0a7d1caaf809057635 (diff)
downloadcraftbukkit-543c4879fee3b7165764c5371d226c93fe3a657b.tar
craftbukkit-543c4879fee3b7165764c5371d226c93fe3a657b.tar.gz
craftbukkit-543c4879fee3b7165764c5371d226c93fe3a657b.tar.lz
craftbukkit-543c4879fee3b7165764c5371d226c93fe3a657b.tar.xz
craftbukkit-543c4879fee3b7165764c5371d226c93fe3a657b.zip
Updated CraftBukkit to 1.2
Diffstat (limited to 'src/main/java/net/minecraft/server/TileEntityPiston.java')
-rw-r--r--src/main/java/net/minecraft/server/TileEntityPiston.java14
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);
}