Check container inventory before casting to InventoryPlayer. Fixes #1375

Added missing EntityFireBall patch from previous commit.