mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-11 08:16:19 -04:00
Small robot fluid error message fix.
This commit is contained in:
parent
860130cff2
commit
b9d6be07b2
@ -607,7 +607,10 @@ class Robot(val robot: tileentity.Robot) extends ManagedComponent {
|
|||||||
case _ =>
|
case _ =>
|
||||||
val blockId = world.getBlockId(x + facing.offsetX, y + facing.offsetY, z + facing.offsetZ)
|
val blockId = world.getBlockId(x + facing.offsetX, y + facing.offsetY, z + facing.offsetZ)
|
||||||
val fluid = FluidRegistry.lookupFluidForBlock(Block.blocksList(blockId))
|
val fluid = FluidRegistry.lookupFluidForBlock(Block.blocksList(blockId))
|
||||||
if (tank.fill(new FluidStack(fluid, 1000), false) == 1000) {
|
if (fluid == null) {
|
||||||
|
result(Unit, "incompatible or no fluid")
|
||||||
|
}
|
||||||
|
else if (tank.fill(new FluidStack(fluid, 1000), false) == 1000) {
|
||||||
tank.fill(new FluidStack(fluid, 1000), true)
|
tank.fill(new FluidStack(fluid, 1000), true)
|
||||||
world.setBlockToAir(x + facing.offsetX, y + facing.offsetY, z + facing.offsetZ)
|
world.setBlockToAir(x + facing.offsetX, y + facing.offsetY, z + facing.offsetZ)
|
||||||
result(true)
|
result(true)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user