mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-03-22 22:12:30 +01:00
remove duplicated code
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user