mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 18:22:08 -07:00
Update to Minecraft 1.13-pre7
This commit is contained in:
23
nms-patches/TileEntitySkull.patch
Normal file
23
nms-patches/TileEntitySkull.patch
Normal file
@@ -0,0 +1,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
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user