mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Fix Some of the rendering errors/Tree errors.
This commit is contained in:
1 parent
1bc13bad5b
commit
db764e4fa1
7 files changed
+82
-92
No files matched your search
@@ -6,8 +6,8 @@ import tconstruct.TConstruct;
|
||||
import tconstruct.common.TRepo;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.gameevent.TickEvent.ClientTickEvent;
|
||||
import cpw.mods.fml.common.gameevent.TickEvent.Phase;
|
||||
import cpw.mods.fml.common.gameevent.TickEvent.Type;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class TClientTickHandler
|
||||
{
|
||||
@@ -15,22 +15,15 @@ public class TClientTickHandler
|
||||
|
||||
TControls controlInstance = ((TProxyClient) TConstruct.proxy).controlInstance;
|
||||
|
||||
public TClientTickHandler()
|
||||
{
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@SubscribeEvent
|
||||
public void onTick (ClientTickEvent event)
|
||||
public void tickEnd (ClientTickEvent event)
|
||||
{
|
||||
|
||||
if (event.phase.equals(Phase.END) && event.type.equals(Type.RENDER))
|
||||
{
|
||||
TRepo.oreBerry.setGraphicsLevel(Blocks.leaves.field_150121_P);
|
||||
TRepo.oreBerrySecond.setGraphicsLevel(Blocks.leaves.field_150121_P);
|
||||
TRepo.slimeLeaves.setGraphicsLevel(Blocks.leaves.field_150121_P);
|
||||
if (mc.thePlayer != null && mc.thePlayer.onGround)
|
||||
controlInstance.landOnGround();
|
||||
}
|
||||
TRepo.oreBerry.setGraphicsLevel(Blocks.leaves.field_150121_P);
|
||||
TRepo.oreBerrySecond.setGraphicsLevel(Blocks.leaves.field_150121_P);
|
||||
TRepo.slimeLeaves.setGraphicsLevel(Blocks.leaves.field_150121_P);
|
||||
if (mc.thePlayer != null && mc.thePlayer.onGround)
|
||||
controlInstance.landOnGround();
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user