Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 12:30:06 +01:00
24 Zeilen
786 B
Diff
24 Zeilen
786 B
Diff
--- 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
|
|
}
|
|
|
|
}
|