Skip to content

Commit

Permalink
resilience improvement (#10206)
Browse files Browse the repository at this point in the history
make worldtick more resilient
  • Loading branch information
Raycoms authored Sep 9, 2024
1 parent 6ddf530 commit 80bb962
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 @@ -611,7 +611,17 @@ public void onWorldTick(final TickEvent.@NotNull LevelTickEvent event)
{
if (event.phase == TickEvent.Phase.END)
{
getColonies(event.level).forEach(c -> c.onWorldTick(event));
for (final IColony colony : getColonies(event.level))
{
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 80bb962

Please sign in to comment.