mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -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 _ =>
|
case _ =>
|
||||||
}
|
}
|
||||||
try world.getBlockTileEntity(x, y, z) match {
|
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 {
|
} catch {
|
||||||
case _: Throwable =>
|
case _: Throwable =>
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user