Fix water Abm bug

master
TenPlus1 2015-11-17 20:35:10 +00:00
parent d025784f30
commit b88d8e902c
1 changed files with 2 additions and 1 deletions

View File

@ -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,