1
0
forked from xjboss/KCauldronX
KCauldronX/patches/net/minecraft/tileentity/TileEntityPiston.java.patch
2015-03-22 20:38:04 +03:00

15 lines
393 B
Diff

--- ../src-base/minecraft/net/minecraft/tileentity/TileEntityPiston.java
+++ ../src-work/minecraft/net/minecraft/tileentity/TileEntityPiston.java
@@ -140,6 +140,11 @@
public void updateEntity()
{
+ if (this.worldObj == null)
+ {
+ return; // CraftBukkit
+ }
+
this.lastProgress = this.progress;
if (this.lastProgress >= 1.0F)