mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-21 17:02:56 +00:00
fix(jui): open hopper screen for minecart hopper as well
This commit is contained in:
parent
5ac7f23577
commit
bdebc23e91
|
|
@ -598,9 +598,13 @@ bool LocalPlayer::openHopper(std::shared_ptr<HopperTileEntity> container) {
|
|||
}
|
||||
|
||||
bool LocalPlayer::openHopper(std::shared_ptr<MinecartHopper> container) {
|
||||
// minecraft->setScreen(new HopperScreen(inventory, container));
|
||||
#ifdef ENABLE_JAVA_GUIS
|
||||
minecraft->setScreen(new HopperScreen(inventory, container));
|
||||
bool success = true;
|
||||
#else
|
||||
bool success = app.LoadHopperMenu(GetXboxPad(), inventory, container);
|
||||
if (success) ui.PlayUISFX(eSFX_Press);
|
||||
#endif
|
||||
return success;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue