mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Use carried item for endermen's changed-block's id. Fixes BUKKIT-3075
This commit is contained in:
1 parent
0c16afd6e0
commit
9bd02495df
1 file changed
+1
-1
@@ -122,7 +122,7 @@ public class EntityEnderman extends EntityMonster {
|
||||
// CraftBukkit start - place event
|
||||
org.bukkit.block.Block bblock = this.world.getWorld().getBlockAt(i, j, k);
|
||||
|
||||
if (!CraftEventFactory.callEntityChangeBlockEvent(this, bblock, bblock.getType()).isCancelled()) {
|
||||
if (!CraftEventFactory.callEntityChangeBlockEvent(this, bblock, this.getCarriedId()).isCancelled()) {
|
||||
this.world.setTypeIdAndData(i, j, k, this.getCarriedId(), this.getCarriedData());
|
||||
this.setCarriedId(0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user