3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 21:10:17 +01:00

Fix forgotten call of EntityInteractEvent for PressurePlates.

Dieser Commit ist enthalten in:
Erik Broes 2011-04-25 22:19:39 +02:00
Ursprung 88ebcc8db5
Commit 1db5464d91

Datei anzeigen

@ -4,6 +4,7 @@ import java.util.List;
import java.util.Random; import java.util.Random;
// CraftBukkit start // CraftBukkit start
import org.bukkit.Bukkit;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.craftbukkit.CraftWorld; import org.bukkit.craftbukkit.CraftWorld;
import org.bukkit.craftbukkit.block.CraftBlock; import org.bukkit.craftbukkit.block.CraftBlock;
@ -108,6 +109,7 @@ public class BlockPressurePlate extends Block {
} }
else if (object instanceof Entity) { else if (object instanceof Entity) {
cancellable = new EntityInteractEvent(((Entity) object).getBukkitEntity(), ((WorldServer)world).getWorld().getBlockAt(i, j, k)); cancellable = new EntityInteractEvent(((Entity) object).getBukkitEntity(), ((WorldServer)world).getWorld().getBlockAt(i, j, k));
((CraftServer)Bukkit.getServer()).getPluginManager().callEvent((EntityInteractEvent) cancellable);
} }
else continue; else continue;
if (cancellable.isCancelled()) { if (cancellable.isCancelled()) {