summaryrefslogtreecommitdiffstats
path: root/nms-patches/TileEntityPiston.patch
blob: b7f7c9014c54fd41a72947cc2193c5f69611fde9 (plain)
1
2
3
4
5
6
7
8
9
10
--- a/net/minecraft/server/TileEntityPiston.java
+++ b/net/minecraft/server/TileEntityPiston.java
@@ -133,6 +133,7 @@
     }
 
     public void E_() {
+        if (this.world == null) return; // CraftBukkit
         this.j = this.i;
         if (this.j >= 1.0F) {
             this.j();