mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2026-11-14 10:24:27 +00:00
Initial update to Fabric
This commit is contained in:
1 parent
7afc3e5260
commit
55a7ee4acf
297 files changed
+4978
-5586
No files matched your search
@@ -6,13 +6,6 @@
|
||||
|
||||
package dan200.computercraft.client;
|
||||
|
||||
import dan200.computercraft.ComputerCraft;
|
||||
import net.minecraftforge.api.distmarker.Dist;
|
||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
import net.minecraftforge.fml.common.gameevent.TickEvent;
|
||||
|
||||
@Mod.EventBusSubscriber( modid = ComputerCraft.MOD_ID, value = Dist.CLIENT )
|
||||
public final class FrameInfo
|
||||
{
|
||||
private static int tick;
|
||||
@@ -32,15 +25,13 @@ public final class FrameInfo
|
||||
return renderFrame;
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public static void onTick( TickEvent.ClientTickEvent event )
|
||||
public static void onTick()
|
||||
{
|
||||
if( event.phase == TickEvent.Phase.START ) tick++;
|
||||
tick++;
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public static void onRenderTick( TickEvent.RenderTickEvent event )
|
||||
public static void onRenderFrame()
|
||||
{
|
||||
if( event.phase == TickEvent.Phase.START ) renderFrame++;
|
||||
renderFrame++;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user