diff --git a/sponge/src/main/java/com/griefdefender/listener/EntityEventHandler.java b/sponge/src/main/java/com/griefdefender/listener/EntityEventHandler.java index c4372fb..82aa1dc 100644 --- a/sponge/src/main/java/com/griefdefender/listener/EntityEventHandler.java +++ b/sponge/src/main/java/com/griefdefender/listener/EntityEventHandler.java @@ -693,7 +693,7 @@ public void onEntityTeleport(MoveEntityEvent.Teleport event) { final Location sourceLocation = event.getFromTransform().getLocation(); final Location destination = event.getToTransform().getLocation(); // Handle BorderClaimEvent - if (!CommonEntityEventHandler.getInstance().onEntityMove(event, sourceLocation, destination, player)) { + if (!CommonEntityEventHandler.getInstance().onEntityMove(event, sourceLocation, destination, entity)) { event.setCancelled(true); GDTimings.ENTITY_TELEPORT_EVENT.stopTiming(); return;