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