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