Fix server crash with holding sigil keybind (#915)
@Arcaratus, poking because this will break BA again. I separated things into new classes.
This commit is contained in:
parent
e9549fd9db
commit
d1f98be462
7 changed files with 143 additions and 134 deletions
|
@ -8,7 +8,7 @@ import java.util.Set;
|
|||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import WayofTime.bloodmagic.client.KeyBindingBloodMagic;
|
||||
import WayofTime.bloodmagic.client.key.KeyBindings;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.entity.EntityPlayerSP;
|
||||
import net.minecraft.client.renderer.GlStateManager;
|
||||
|
@ -210,7 +210,7 @@ public class ClientHandler
|
|||
if (!minecraft.inGameHasFocus)
|
||||
return;
|
||||
|
||||
for (KeyBindingBloodMagic.KeyBindings keyBinding : KeyBindingBloodMagic.KeyBindings.values())
|
||||
for (KeyBindings keyBinding : KeyBindings.values())
|
||||
if (keyBinding.getKey().isPressed())
|
||||
keyBinding.handleKeybind();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue