mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 04:56:50 +01:00
Use carried item for endermen's changed-block's id. Fixes BUKKIT-3075
This commit is contained in:
parent
0c16afd6e0
commit
9bd02495df
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ public class EntityEnderman extends EntityMonster {
|
||||||
// CraftBukkit start - place event
|
// CraftBukkit start - place event
|
||||||
org.bukkit.block.Block bblock = this.world.getWorld().getBlockAt(i, j, k);
|
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.world.setTypeIdAndData(i, j, k, this.getCarriedId(), this.getCarriedData());
|
||||||
this.setCarriedId(0);
|
this.setCarriedId(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue