ignore empty inventory names

This commit is contained in:
Florian Nücke 2014-03-05 17:39:09 +01:00
parent 362e79f779
commit efebc5964e

View File

@ -35,7 +35,7 @@ class CompoundBlockDriver(val blocks: driver.Block*) extends driver.Block {
case _ =>
}
try world.getBlockTileEntity(x, y, z) match {
case inventory: IInventory => return inventory.getInvName.stripPrefix("container.")
case inventory: IInventory if !Strings.isNullOrEmpty(inventory.getInvName) => return inventory.getInvName.stripPrefix("container.")
} catch {
case _: Throwable =>
}