Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
someaddons committed Oct 17, 2024
1 parent 251365a commit 561dbb4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ public static void onEntityAdded(@NotNull final EntityJoinLevelEvent event)

if (event.getEntity() instanceof EntityCitizen citizen && citizen.getCitizenColonyHandler().getColonyId() == 0)
{
Log.getLogger().info("Prevented citizen with colony id 0 from joining world");
event.setCanceled(true);
}
}
Expand Down

0 comments on commit 561dbb4

Please sign in to comment.