mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-08 23:06:58 -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 _ =>
|
||||
val blockId = world.getBlockId(x + facing.offsetX, y + facing.offsetY, z + facing.offsetZ)
|
||||
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)
|
||||
world.setBlockToAir(x + facing.offsetX, y + facing.offsetY, z + facing.offsetZ)
|
||||
result(true)
|
||||
|
Loading…
x
Reference in New Issue
Block a user