@@ -1,16 +1,6 @@
|
||||
--- a/net/minecraft/server/Block.java
|
||||
+++ b/net/minecraft/server/Block.java
|
||||
@@ -434,7 +434,8 @@
|
||||
}
|
||||
|
||||
public static List<ItemStack> getDrops(IBlockData iblockdata, WorldServer worldserver, BlockPosition blockposition, @Nullable TileEntity tileentity, Entity entity, ItemStack itemstack) {
|
||||
- LootTableInfo.Builder loottableinfo_builder = (new LootTableInfo.Builder(worldserver)).a(worldserver.random).set(LootContextParameters.POSITION, blockposition).set(LootContextParameters.TOOL, itemstack).set(LootContextParameters.THIS_ENTITY, entity).setOptional(LootContextParameters.BLOCK_ENTITY, tileentity);
|
||||
+ // CraftBukkit - make entity optional
|
||||
+ LootTableInfo.Builder loottableinfo_builder = (new LootTableInfo.Builder(worldserver)).a(worldserver.random).set(LootContextParameters.POSITION, blockposition).set(LootContextParameters.TOOL, itemstack).setOptional(LootContextParameters.THIS_ENTITY, entity).setOptional(LootContextParameters.BLOCK_ENTITY, tileentity);
|
||||
|
||||
return iblockdata.a(loottableinfo_builder);
|
||||
}
|
||||
@@ -488,7 +489,13 @@
|
||||
@@ -489,7 +489,13 @@
|
||||
EntityItem entityitem = new EntityItem(world, (double) blockposition.getX() + d0, (double) blockposition.getY() + d1, (double) blockposition.getZ() + d2, itemstack);
|
||||
|
||||
entityitem.defaultPickupDelay();
|
||||
@@ -25,8 +15,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -685,6 +692,12 @@
|
||||
return block == Blocks.DIRT || block == Blocks.COARSE_DIRT || block == Blocks.PODZOL;
|
||||
@@ -682,6 +688,12 @@
|
||||
return "Block{" + IRegistry.BLOCK.getKey(this) + "}";
|
||||
}
|
||||
|
||||
+ // CraftBukkit start
|
||||
|
||||
Reference in New Issue
Block a user