mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-23 09:27:45 +01:00
Merge pull request #321 from MyPlayPlanet/falling-block-height-doEntityDrops
Make falling block height nerf respect doEntityDrops
This commit is contained in:
commit
3e06e28523
@ -1,4 +1,4 @@
|
|||||||
From a0937231e2595d3b2ce3795d3fca5e36bbee8980 Mon Sep 17 00:00:00 2001
|
From 7d0cc5ff146d3fbf97eb9006f7013fca14c14eea Mon Sep 17 00:00:00 2001
|
||||||
From: Byteflux <byte@byteflux.net>
|
From: Byteflux <byte@byteflux.net>
|
||||||
Date: Tue, 1 Mar 2016 14:14:15 -0600
|
Date: Tue, 1 Mar 2016 14:14:15 -0600
|
||||||
Subject: [PATCH] Drop falling block and tnt entities at the specified height
|
Subject: [PATCH] Drop falling block and tnt entities at the specified height
|
||||||
@ -24,7 +24,7 @@ index 78dcf26..f19ae97 100644
|
|||||||
+ }
|
+ }
|
||||||
}
|
}
|
||||||
diff --git a/src/main/java/net/minecraft/server/EntityFallingBlock.java b/src/main/java/net/minecraft/server/EntityFallingBlock.java
|
diff --git a/src/main/java/net/minecraft/server/EntityFallingBlock.java b/src/main/java/net/minecraft/server/EntityFallingBlock.java
|
||||||
index 0b2c5d7..08a7969 100644
|
index 0b2c5d7..5ec5e44 100644
|
||||||
--- a/src/main/java/net/minecraft/server/EntityFallingBlock.java
|
--- a/src/main/java/net/minecraft/server/EntityFallingBlock.java
|
||||||
+++ b/src/main/java/net/minecraft/server/EntityFallingBlock.java
|
+++ b/src/main/java/net/minecraft/server/EntityFallingBlock.java
|
||||||
@@ -77,6 +77,17 @@ public class EntityFallingBlock extends Entity {
|
@@ -77,6 +77,17 @@ public class EntityFallingBlock extends Entity {
|
||||||
@ -34,7 +34,7 @@ index 0b2c5d7..08a7969 100644
|
|||||||
+
|
+
|
||||||
+ // 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);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
@ -64,5 +64,5 @@ index 35ed2a6..564ea37 100644
|
|||||||
this.motY *= 0.9800000190734863D;
|
this.motY *= 0.9800000190734863D;
|
||||||
this.motZ *= 0.9800000190734863D;
|
this.motZ *= 0.9800000190734863D;
|
||||||
--
|
--
|
||||||
2.8.2
|
1.9.1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user