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,11 +6,17 @@ import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||||
|
|
||||||
public class RTPCachesEventHandlers
|
public class RTPCachesEventHandlers
|
||||||
{
|
{
|
||||||
|
public int lastTick;
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onTick(TickEvent.ServerTickEvent event)
|
public void onTick(TickEvent.ServerTickEvent event)
|
||||||
{
|
{
|
||||||
|
lastTick++;
|
||||||
|
if(lastTick>=40)
|
||||||
|
{
|
||||||
|
lastTick=0;
|
||||||
RTP.checkStale();
|
RTP.checkStale();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onRTPFound(RTPFoundEvent event)
|
public void onRTPFound(RTPFoundEvent event)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue