fix(jui): open hopper screen for minecart hopper as well

This commit is contained in:
Sally Knight 2026-03-26 19:43:56 +03:00 committed by Tropical
parent 5ac7f23577
commit bdebc23e91

View file

@ -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;
}