mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-30 21:23:00 +00:00 
			
		
		
		
	Fix FrameInfo
This commit is contained in:
		| @@ -6,13 +6,8 @@ | ||||
|  | ||||
| package dan200.computercraft.client; | ||||
|  | ||||
| import dan200.computercraft.ComputerCraft; | ||||
| import net.minecraftforge.api.distmarker.Dist; | ||||
| import net.minecraftforge.event.TickEvent; | ||||
| import net.minecraftforge.eventbus.api.SubscribeEvent; | ||||
| import net.minecraftforge.fml.common.Mod; | ||||
| import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents; | ||||
|  | ||||
| @Mod.EventBusSubscriber( modid = ComputerCraft.MOD_ID, value = Dist.CLIENT ) | ||||
| public final class FrameInfo | ||||
| { | ||||
|     private static int tick; | ||||
| @@ -38,16 +33,13 @@ public final class FrameInfo | ||||
|         return renderFrame; | ||||
|     } | ||||
|  | ||||
|     @SubscribeEvent | ||||
|     public static void onRenderTick(TickEvent.RenderTickEvent event) { | ||||
|         if (event.phase == TickEvent.Phase.START) { | ||||
|             renderFrame++; | ||||
|         } | ||||
|     // TODO Call this in a callback | ||||
|     public static void onTick() { | ||||
|         tick++; | ||||
|     } | ||||
|  | ||||
|     @SubscribeEvent | ||||
|     public static void onRenderTick( TickEvent.RenderTickEvent event ) | ||||
|     { | ||||
|         if( event.phase == TickEvent.Phase.START ) renderFrame++; | ||||
|     // TODO Call this in a callback | ||||
|     public static void onRenderFrame() { | ||||
|         renderFrame++; | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jacob Farley
					Jacob Farley