remove duplicated code

This commit is contained in:
AFCMS 2021-03-30 00:44:38 +02:00
parent 600e8bede2
commit 3a514ecdad
1 changed files with 1 additions and 3 deletions

View File

@ -12,9 +12,7 @@ local function is_group(pos, group)
return minetest.get_item_group(nn, group) ~= 0
end
local function is_water(pos)
return is_group(pos, "water")
end
local is_water = flowlib.is_water
local function is_ice(pos)
return is_group(pos, "ice")