Moved buttons to widget subfolder, Changed input detection method
This commit is contained in:
1 parent
565361ebeb
commit
021298e6f5
13 files changed
+3
-3
No files matched your search
@@ -30,15 +30,15 @@ public class KeyHandler
|
|||||||
{
|
{
|
||||||
if(Minecraft.getInstance() != null && Minecraft.getInstance().currentScreen == null)
|
if(Minecraft.getInstance() != null && Minecraft.getInstance().currentScreen == null)
|
||||||
{
|
{
|
||||||
if(KEY_WORLD_HANDLER.isPressed())
|
if(KEY_WORLD_HANDLER.isKeyDown())
|
||||||
{
|
{
|
||||||
ActionHelper.displayGui();
|
ActionHelper.displayGui();
|
||||||
}
|
}
|
||||||
else if(KEY_WORLD_HANDLER_POS1.isPressed() && Config.getSettings().shortcutKeys())
|
else if(KEY_WORLD_HANDLER_POS1.isKeyDown() && Config.getSettings().shortcutKeys())
|
||||||
{
|
{
|
||||||
BlockHelper.setPos1(BlockHelper.getFocusedBlockPos());
|
BlockHelper.setPos1(BlockHelper.getFocusedBlockPos());
|
||||||
}
|
}
|
||||||
else if(KEY_WORLD_HANDLER_POS2.isPressed() && Config.getSettings().shortcutKeys())
|
else if(KEY_WORLD_HANDLER_POS2.isKeyDown() && Config.getSettings().shortcutKeys())
|
||||||
{
|
{
|
||||||
BlockHelper.setPos2(BlockHelper.getFocusedBlockPos());
|
BlockHelper.setPos2(BlockHelper.getFocusedBlockPos());
|
||||||
}
|
}
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user