Skip to content

Commit

Permalink
Replace synchronized on static (WorldTime)
Browse files Browse the repository at this point in the history
  • Loading branch information
OldSerpskiStalker committed Oct 23, 2024
1 parent 80f1610 commit 97f6f29
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public synchronized void onUpdatePlayerJoin_1(PlayerEvent.PlayerLoggedInEvent ev
* @param event
*/
@SubscribeEvent
public synchronized void onUpdatePlayerTick_2(TickEvent.PlayerTickEvent event)
public static void onUpdatePlayerTick_2(TickEvent.PlayerTickEvent event)
{
if (event.side == Side.CLIENT && event.phase == TickEvent.Phase.START &&
event.player.world.provider.getDimension() == 0 &&
Expand All @@ -113,7 +113,7 @@ public synchronized void onUpdatePlayerTick_2(TickEvent.PlayerTickEvent event)
* @param event
*/
@SubscribeEvent
public synchronized void onUpdateWorldTick_4(TickEvent.WorldTickEvent event)
public static void onUpdateWorldTick_4(TickEvent.WorldTickEvent event)
{
if (event.world.provider.getDimension() == 0 && event.phase == TickEvent.Phase.START
&& event.world.getGameRules().getBoolean("doDaylightCycle_tc"))
Expand Down

0 comments on commit 97f6f29

Please sign in to comment.