mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Sounds work! Also got tick handlers set up, still have to do a few things
This commit is contained in:
1 parent
815944c49a
commit
f0d3848f8a
8 files changed
+61
-46
No files matched your search
@@ -51,22 +51,6 @@ public abstract class MekKeyHandler
|
||||
return keyBindings;
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onTick(ClientTickEvent event)
|
||||
{
|
||||
if(event.side == Side.CLIENT)
|
||||
{
|
||||
if(event.phase == Phase.START)
|
||||
{
|
||||
keyTick(event.type, false);
|
||||
}
|
||||
else if(event.phase == Phase.END)
|
||||
{
|
||||
keyTick(event.type, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void keyTick(Type type, boolean tickEnd)
|
||||
{
|
||||
for(int i = 0; i < keyBindings.length; i++)
|
||||
|
||||
Reference in new issue
Block a user