Add a little bit of sanity!
This commit is contained in:
parent
f8eb498f3c
commit
3a8ce9b989
1 changed files with 7 additions and 1 deletions
|
@ -6,10 +6,16 @@ import net.minecraftforge.eventbus.api.SubscribeEvent;
|
|||
|
||||
public class RTPCachesEventHandlers
|
||||
{
|
||||
public int lastTick;
|
||||
@SubscribeEvent
|
||||
public void onTick(TickEvent.ServerTickEvent event)
|
||||
{
|
||||
RTP.checkStale();
|
||||
lastTick++;
|
||||
if(lastTick>=40)
|
||||
{
|
||||
lastTick=0;
|
||||
RTP.checkStale();
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue