Skip to content

Commit

Permalink
resilience fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Raycoms committed Sep 9, 2024
1 parent e6ceffd commit 7d4b3bc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/main/java/com/minecolonies/core/colony/ColonyManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,17 @@ public void onWorldTick(final @NotNull LevelTickEvent.Pre event)
{
if (!event.getLevel().isClientSide)
{
getColonies(event.getLevel()).forEach(c -> c.onWorldTick(event));
for (final IColony colony : getColonies(event.getLevel()))
{
try
{
colony.onWorldTick(event);
}
catch (final Exception ex)
{
Log.getLogger().error("Something went wrong ticking colony: " + colony.getID(), ex);
}
}
}
}

Expand Down

0 comments on commit 7d4b3bc

Please sign in to comment.