Skip to content

Commit

Permalink
Merge pull request #5 from RappyLabyAddons/fix/guiClosing
Browse files Browse the repository at this point in the history
Fixes bug with opening GUIs
  • Loading branch information
RappyTV authored May 1, 2023
2 parents 524e3e1 + 359685d commit bc68ade
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,4 @@ build-data.txt
!libs/*.jar

# Ignore the test client
game-runner

.assetsroot
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public void onTick(GameTickEvent event) {

public void toolUsed(ItemStack itemStack, ToolType toolType) {
if(toolType == ToolType.None) return;
if(Laby.labyAPI().minecraft().minecraftWindow().isScreenOpened()) return;

int itemWarnInt = (toolType.getWarnPercentage(config) * itemStack.getMaximumDamage()) / 100;
int itemUsedInt = itemStack.getMaximumDamage() - itemStack.getCurrentDamageValue();
if(config.debug().get())
Expand Down

0 comments on commit bc68ade

Please sign in to comment.