summaryrefslogtreecommitdiffstats
path: root/nms-patches/TileEntitySkull.patch
blob: 7b4bcc5c0d3fc63782b417e8f7aa185a3c4caf46 (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
@@ -118,13 +118,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
         }
 
     }