Skip to content

Commit

Permalink
pump error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kherae committed Oct 29, 2023
1 parent 1395db9 commit 9ebe3a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objects/wired/pumps/fuPumpInput.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ end
function moveLiquid(inputLocation,outputLocation)
local inputLiquid = world.liquidAt(inputLocation)

if inputLiquid and inputLiquid[2] > 0.1 then
if (inputLiquid and inputLocation) and (type(inputLocation[1])=="number") and (type(inputLocation[2])=="number") and (inputLiquid[2] > 0.1) then
local outputLiquid = world.liquidAt(outputLocation)

if (self.liquidPressurized or (not outputLiquid or (outputLiquid[1] == inputLiquid[1] and outputLiquid[2] < 1))) then
Expand Down

0 comments on commit 9ebe3a3

Please sign in to comment.