replace client ticks with a timer
Prevents DH loading issues when MC ticks are paused
This commit is contained in:
+1
-1
Submodule coreSubProjects updated: 7f0ddadf26...5be5c5a5bc
@@ -113,14 +113,6 @@ public class FabricClientProxy implements AbstractModInitializer.IEventProxy
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=============//
|
|
||||||
// tick events //
|
|
||||||
//=============//
|
|
||||||
|
|
||||||
ClientTickEvents.START_CLIENT_TICK.register((client) -> { ClientApi.INSTANCE.clientTickEvent(); });
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//==============//
|
//==============//
|
||||||
// chunk events //
|
// chunk events //
|
||||||
//==============//
|
//==============//
|
||||||
|
|||||||
@@ -107,21 +107,6 @@ public class ForgeClientProxy implements AbstractModInitializer.IEventProxy
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=============//
|
|
||||||
// tick events //
|
|
||||||
//=============//
|
|
||||||
|
|
||||||
@SubscribeEvent
|
|
||||||
public void clientTickEvent(TickEvent.ClientTickEvent event)
|
|
||||||
{
|
|
||||||
if (event.phase == TickEvent.Phase.START)
|
|
||||||
{
|
|
||||||
ClientApi.INSTANCE.clientTickEvent();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//==============//
|
//==============//
|
||||||
// world events //
|
// world events //
|
||||||
//==============//
|
//==============//
|
||||||
|
|||||||
@@ -73,29 +73,6 @@ public class NeoforgeClientProxy implements AbstractModInitializer.IEventProxy
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
//=============//
|
|
||||||
// tick events //
|
|
||||||
//=============//
|
|
||||||
|
|
||||||
#if MC_VER < MC_1_20_6
|
|
||||||
@SubscribeEvent
|
|
||||||
public void clientTickEvent(TickEvent.ClientTickEvent event)
|
|
||||||
{
|
|
||||||
if (event.phase == TickEvent.Phase.START)
|
|
||||||
{
|
|
||||||
ClientApi.INSTANCE.clientTickEvent();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
@SubscribeEvent
|
|
||||||
public void clientTickEvent(ClientTickEvent.Pre event)
|
|
||||||
{
|
|
||||||
ClientApi.INSTANCE.clientTickEvent();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//==============//
|
//==============//
|
||||||
// world events //
|
// world events //
|
||||||
//==============//
|
//==============//
|
||||||
|
|||||||
Reference in New Issue
Block a user