3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-23 23:00:08 +01:00
Paper/nms-patches/TileEntitySkull.patch

24 Zeilen
786 B
Diff

2018-07-15 02:00:00 +02:00
--- a/net/minecraft/server/TileEntitySkull.java
+++ b/net/minecraft/server/TileEntitySkull.java
2018-08-26 04:00:00 +02:00
@@ -118,13 +118,19 @@
2018-07-15 02:00:00 +02:00
}
}
+ // 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
}
}