You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
393 B

--- ../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)