Skip to content

Commit

Permalink
Fix rendering screen crash
Browse files Browse the repository at this point in the history
  • Loading branch information
L1ghtBeam committed Jul 7, 2024
1 parent c91c9cf commit 1e86b13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public ActionResult interactMob(PlayerEntity player, Hand hand, CallbackInfoRetu
int healthValue = new BigDecimal(maxHealth.replace(',', '.')).intValue();
int strengthValue = new BigDecimal(strength.replace(',', '.')).intValue();

MinecraftClient.getInstance().setScreen(
MinecraftClient.getInstance().execute(() -> MinecraftClient.getInstance().setScreen(
new ToolTipGui(new TooltipDonkey(speedValue, jumpValue, healthValue, strengthValue))
);
));
}
return ret.getReturnValue();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ public ActionResult interactMob(PlayerEntity player, Hand hand, CallbackInfoRetu
double speedValue = new BigDecimal(speed.replace(',', '.')).doubleValue();
int healthValue = new BigDecimal(maxHealth.replace(',', '.')).intValue();

MinecraftClient.getInstance().setScreen(
MinecraftClient.getInstance().execute(() -> MinecraftClient.getInstance().setScreen(
new ToolTipGui(new Tooltip(speedValue, jumpValue, healthValue))
);
));
}
return ret.getReturnValue();
}
Expand Down

0 comments on commit 1e86b13

Please sign in to comment.