mirror of
https://github.com/barkeser2002/Tenet.git
synced 2026-09-25 18:06:13 +03:00
15 lines
393 B
Diff
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)
|