feat(jui): re-enable and update TrapScreen

(Dispenser and Dropper GUI)
This commit is contained in:
Sally Knight authored and Tropical committed 2026-03-29 15:50:36 -05:00
1 parent fbbf086f71
commit 975f716f9c
5 files changed
+28 -11

No files matched your search

+5 -1
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;
}