summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/TileEntityPiston.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft/server/TileEntityPiston.java')
-rw-r--r--src/main/java/net/minecraft/server/TileEntityPiston.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main/java/net/minecraft/server/TileEntityPiston.java b/src/main/java/net/minecraft/server/TileEntityPiston.java
index becd33ec..74d9c5d3 100644
--- a/src/main/java/net/minecraft/server/TileEntityPiston.java
+++ b/src/main/java/net/minecraft/server/TileEntityPiston.java
@@ -79,24 +79,26 @@ public class TileEntityPiston extends TileEntity {
public void f() {
if (this.g < 1.0F && this.world != null) {
this.g = this.f = 1.0F;
- this.world.r(this.x, this.y, this.z);
+ this.world.s(this.x, this.y, this.z);
this.w_();
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);
+ this.world.setTypeIdAndData(this.x, this.y, this.z, this.a, this.b, 3);
+ this.world.g(this.x, this.y, this.z, this.a);
}
}
}
- public void g() {
+ public void h() {
if (this.world == null) return; // CraftBukkit
this.g = this.f;
if (this.g >= 1.0F) {
this.a(1.0F, 0.25F);
- this.world.r(this.x, this.y, this.z);
+ this.world.s(this.x, this.y, this.z);
this.w_();
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);
+ this.world.setTypeIdAndData(this.x, this.y, this.z, this.a, this.b, 3);
+ this.world.g(this.x, this.y, this.z, this.a);
}
} else {
this.f += 0.5F;