Fix drainable parameter

This commit is contained in:
Evert Prants 2018-06-20 19:57:37 +03:00
parent cd18516372
commit 0cd0e138ea
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -28,7 +28,11 @@ function fluid_lib.get_buffer_data(pos, buffer)
local amount = meta:get_int(buffer .. "_fluid_storage")
local capacity = buffers[buffer].capacity
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 {
fluid = fluid,