Game crashes when dropping an item in menu #703
Labels
Application Crash
Issue related to application crash, a crash report may be included.
Bug
Something that shouldn't happen.
Controls
Issue related to user controls.
UI/Menus
Issue related to (G)UI or menus/displays.
Describe the bug
The game crashes when dropping any item with Q or Shift-Q
Steps to reproduce the error:
Log
Unhandled error: General Application Crash
java.lang.ClassCastException: minicraft.screen.Menu cannot be cast to minicraft.screen.InventoryMenu
at minicraft.screen.PlayerInvDisplay.update(PlayerInvDisplay.java:361)
at minicraft.screen.InventoryMenu.tick(InventoryMenu.java:67)
at minicraft.screen.Display.tick(Display.java:102)
at minicraft.screen.PlayerInvDisplay.tick(PlayerInvDisplay.java:88)
at minicraft.core.Updater.tick(Updater.java:192)
at minicraft.core.Initializer.run(Initializer.java:95)
at minicraft.core.Game.main(Game.java:133)
The text was updated successfully, but these errors were encountered: