forked from VoxeLibre/VoxeLibre
remove duplicated code
This commit is contained in:
parent
600e8bede2
commit
3a514ecdad
|
@ -12,9 +12,7 @@ local function is_group(pos, group)
|
||||||
return minetest.get_item_group(nn, group) ~= 0
|
return minetest.get_item_group(nn, group) ~= 0
|
||||||
end
|
end
|
||||||
|
|
||||||
local function is_water(pos)
|
local is_water = flowlib.is_water
|
||||||
return is_group(pos, "water")
|
|
||||||
end
|
|
||||||
|
|
||||||
local function is_ice(pos)
|
local function is_ice(pos)
|
||||||
return is_group(pos, "ice")
|
return is_group(pos, "ice")
|
||||||
|
|
Loading…
Reference in New Issue