summaryrefslogtreecommitdiff
path: root/water.lua
diff options
context:
space:
mode:
Diffstat (limited to 'water.lua')
-rw-r--r--water.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/water.lua b/water.lua
index 27325a1..72d8875 100644
--- a/water.lua
+++ b/water.lua
@@ -66,7 +66,8 @@ minetest.register_abm({
{x = pos.x - 1, y = pos.y - 1, z = pos.z - 1},
{x = pos.x + 1, y = pos.y + 1, z = pos.z + 1},
{"default:water_source", "default:river_water_source"})
- if water then
+
+ if water and #water > 0 then
minetest.set_node(water[1], {name = "default:ice"})
end
end,