mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 13:24:17 -07:00
[Bleeding] Added getting and setting drops to all appropriate events. Fixes BUKKIT-397 and fixes BUKKIT-1252
- Allows drops in creative mode by adding items to the getDrops() list - Contents of containers are not reported - Contents of storage minecarts are not reported
This commit is contained in:
committed by
EvilSeph
parent
8d62de7055
commit
5ba8928041
@@ -96,6 +96,7 @@ public class BlockCrops extends BlockFlower {
|
||||
|
||||
for (int k1 = 0; k1 < j1; ++k1) {
|
||||
if (world.random.nextInt(15) <= l) {
|
||||
/* CraftBukkit start - Identical logic to superclass method; defer to that method
|
||||
float f1 = 0.7F;
|
||||
float f2 = world.random.nextFloat() * f1 + (1.0F - f1) * 0.5F;
|
||||
float f3 = world.random.nextFloat() * f1 + (1.0F - f1) * 0.5F;
|
||||
@@ -104,6 +105,8 @@ public class BlockCrops extends BlockFlower {
|
||||
|
||||
entityitem.pickupDelay = 10;
|
||||
world.addEntity(entityitem);
|
||||
// */
|
||||
this.a(world, i, j, k, new ItemStack(Item.SEEDS));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user