Skip to content

Commit

Permalink
Changed it so when entities are teleported, the plugin will eject all…
Browse files Browse the repository at this point in the history
… their passegners (#1237)
  • Loading branch information
OmerBenGera committed Jul 24, 2022
1 parent ac1238d commit 7a950d1
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -46,6 +46,7 @@ public static void teleportUntilSuccess(Entity entity, Location location, long c
}

private static void teleportEntity(Entity entity, Location location, @Nullable Consumer<Boolean> teleportResult) {
entity.eject();
plugin.getProviders().getAsyncProvider().teleport(entity, location, teleportResult);
}

Expand Down

0 comments on commit 7a950d1

Please sign in to comment.