3
0
KCauldronX/patches/net/minecraft/tileentity/TileEntityPiston.java.patch

15 lines
393 B
Diff
Raw Normal View History

2015-03-22 17:38:04 +00:00
--- ../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)