feat(jui): re-enable and update TrapScreen

(Dispenser and Dropper GUI)
This commit is contained in:
Sally Knight
2026-03-26 17:28:29 +03:00
committed by Tropical
parent fbbf086f71
commit 975f716f9c
5 changed files with 28 additions and 11 deletions

View File

@@ -683,9 +683,13 @@ bool LocalPlayer::openBeacon(std::shared_ptr<BeaconTileEntity> beacon) {
}
bool LocalPlayer::openTrap(std::shared_ptr<DispenserTileEntity> trap) {
#ifdef ENABLE_JAVA_GUIS
minecraft->setScreen(new TrapScreen(inventory, trap));
bool success = true;
#else
bool success = app.LoadTrapMenu(GetXboxPad(), inventory, trap);
if (success) ui.PlayUISFX(eSFX_Press);
// minecraft->setScreen(new TrapScreen(inventory, trap));
#endif
return success;
}