mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-09 09:01:36 +01:00
Make falling block height nerf respect doEntityDrops
This commit is contained in:
parent
fbcd3ce763
commit
74a3b887ff
@ -34,7 +34,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+
|
+
|
||||||
+ // Paper start - Configurable EntityFallingBlock height nerf
|
+ // Paper start - Configurable EntityFallingBlock height nerf
|
||||||
+ if (this.world.paperConfig.fallingBlockHeightNerf != 0 && this.locY > this.world.paperConfig.fallingBlockHeightNerf) {
|
+ if (this.world.paperConfig.fallingBlockHeightNerf != 0 && this.locY > this.world.paperConfig.fallingBlockHeightNerf) {
|
||||||
+ if (this.dropItem) {
|
+ if (this.dropItem && this.world.getGameRules().getBoolean("doEntityDrops")) {
|
||||||
+ this.a(new ItemStack(block, 1, block.getDropData(this.block)), 0.0F);
|
+ this.a(new ItemStack(block, 1, block.getDropData(this.block)), 0.0F);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
Loading…
Reference in New Issue
Block a user