summaryrefslogtreecommitdiffstats
path: root/nms-patches/TileEntitySkull.patch
blob: e7425b53db1c07a9e45b3e8275b5ec5f79e45159 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- a/net/minecraft/server/TileEntitySkull.java
+++ b/net/minecraft/server/TileEntitySkull.java
@@ -119,13 +119,19 @@
         }
     }
 
+    // CraftBukkit start
     public static void a(IBlockAccess iblockaccess, BlockPosition blockposition) {
+        setShouldDrop(iblockaccess, blockposition, false);
+    }
+
+    public static void setShouldDrop(IBlockAccess iblockaccess, BlockPosition blockposition, boolean flag) {
+        // CraftBukkit end
         TileEntity tileentity = iblockaccess.getTileEntity(blockposition);
 
         if (tileentity instanceof TileEntitySkull) {
             TileEntitySkull tileentityskull = (TileEntitySkull) tileentity;
 
-            tileentityskull.drop = false;
+            tileentityskull.drop = flag; // CraftBukkit
         }
 
     }