mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-16 18:55:03 -04:00
ignore empty inventory names
This commit is contained in:
parent
362e79f779
commit
efebc5964e
@ -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 =>
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user