feat(jui): re-enable and update TrapScreen
(Dispenser and Dropper GUI)
This commit is contained in:
1 parent
fbbf086f71
commit
975f716f9c
5 files changed
+28
-11
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user