Fix drainable parameter
This commit is contained in:
parent
cd18516372
commit
0cd0e138ea
@ -28,7 +28,11 @@ function fluid_lib.get_buffer_data(pos, buffer)
|
|||||||
local amount = meta:get_int(buffer .. "_fluid_storage")
|
local amount = meta:get_int(buffer .. "_fluid_storage")
|
||||||
local capacity = buffers[buffer].capacity
|
local capacity = buffers[buffer].capacity
|
||||||
local accepts = buffers[buffer].accepts
|
local accepts = buffers[buffer].accepts
|
||||||
local drainable = buffers[buffer].drainable or true
|
local drainable = buffers[buffer].drainable
|
||||||
|
|
||||||
|
if drainable == nil then
|
||||||
|
drainable = true
|
||||||
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
fluid = fluid,
|
fluid = fluid,
|
||||||
|
Loading…
Reference in New Issue
Block a user