Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 05:20:07 +01:00
[Bleeding] Fixed EntityChangeBlock event reporting incorrect information
for Enderman block placing.
Dieser Commit ist enthalten in:
Ursprung
da1aead88a
Commit
9b10970f6b
@ -137,7 +137,9 @@ public class EntityEnderman extends EntityMonster {
|
|||||||
EndermanPlaceEvent place = new EndermanPlaceEvent(this.getBukkitEntity(), new Location(this.world.getWorld(), i, j, k));
|
EndermanPlaceEvent place = new EndermanPlaceEvent(this.getBukkitEntity(), new Location(this.world.getWorld(), i, j, k));
|
||||||
this.world.getServer().getPluginManager().callEvent(place);
|
this.world.getServer().getPluginManager().callEvent(place);
|
||||||
|
|
||||||
EntityChangeBlockEvent event = new EntityChangeBlockEvent(this.getBukkitEntity(), this.world.getWorld().getBlockAt(i, j, k), org.bukkit.Material.AIR);
|
org.bukkit.block.Block bblock = this.world.getWorld().getBlockAt(i, j, k);
|
||||||
|
|
||||||
|
EntityChangeBlockEvent event = new EntityChangeBlockEvent(this.getBukkitEntity(), bblock, bblock.getType());
|
||||||
this.world.getServer().getPluginManager().callEvent(event);
|
this.world.getServer().getPluginManager().callEvent(event);
|
||||||
|
|
||||||
if (!place.isCancelled() && !event.isCancelled()) {
|
if (!place.isCancelled() && !event.isCancelled()) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren