diff --git a/api.lua b/api.lua index 9c82b5f..f786030 100644 --- a/api.lua +++ b/api.lua @@ -84,6 +84,7 @@ function liquid_physics.register_liquid(namespace, source_name, flowing_name) --Overwrite source source_liquid_def.liquid_range = 0 + source_liquid_def.liquid_renewable = false source_liquid_def.liquid_alternative_flowing = source_liquid_name source_liquid_def.liquid_alternative_source = source_liquid_name @@ -101,7 +102,6 @@ function liquid_physics.register_liquid(namespace, source_name, flowing_name) tiles = source_liquid_def.tiles, use_texture_alpha = source_liquid_def.use_texture_alpha, paramtype = source_liquid_def.paramtype, - leveled = 8 * i, walkable = source_liquid_def.walkable, pointable = source_liquid_def.pointable, diggable = source_liquid_def.diggable, @@ -110,15 +110,16 @@ function liquid_physics.register_liquid(namespace, source_name, flowing_name) drawtype = "nodebox", drop = source_liquid_def.drop, drowning = source_liquid_def.drowning, - liquidtype = "water_source", + liquidtype = "source", liquid_alternative_flowing = node_name, liquid_alternative_source = node_name, liquid_range = 0, liquid_viscosity = source_liquid_def.liquid_viscosity, + liquid_renewable = false, waving = source_liquid_def.waving, color = source_liquid_def.color, node_box = { - type = "leveled", + type = "fixed", fixed = { { -0.5, -0.5, -0.5, 0.5, -0.375 + (0.125 * (i - 1)), 0.5 }, }, @@ -143,6 +144,7 @@ function liquid_physics.register_liquid(namespace, source_name, flowing_name) --Finally, replace flowing, such that it behaves like a source flowing_liquid_def.liquidtype = "source" flowing_liquid_def.liquid_range = 0 + flowing_liquid_def.liquid_renewable = false flowing_liquid_def.liquid_alternative_flowing = source_liquid_name flowing_liquid_def.liquid_alternative_source = source_liquid_name