Skip to content

Commit

Permalink
Stopped world crash and disable gui bypass for now
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHillcox committed Sep 12, 2020
1 parent 434b3d3 commit 5e3c6a6
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,16 @@ public ActionResult<ItemStack> onItemRightClick(World world, PlayerEntity player
// return ActionResult.resultPass(itemstack);
}

if (OurKeys.shiftClickGuiBinding.getKey() == InputMappings.INPUT_INVALID) {
ModScreens.openGadgetSettingsScreen(itemstack);
return ActionResult.resultPass(itemstack);
if (world.isRemote) {
if (OurKeys.shiftClickGuiBinding.getKey() == InputMappings.INPUT_INVALID) {
ModScreens.openGadgetSettingsScreen(itemstack);
return ActionResult.resultPass(itemstack);
}
}

// INTENTIONALLY LEFT IN. I DON'T HAVE THE TIME TO FIX THIS ISSUE ATM
// @todo: migrate keybinding setting onto gadget so I can set a tag on the item
return ActionResult.resultPass(itemstack);
}

if (world.isRemote) {
Expand Down

0 comments on commit 5e3c6a6

Please sign in to comment.