From 3a514ecdadb1fd697eb586746c39b0a7a5db949e Mon Sep 17 00:00:00 2001 From: AFCMS Date: Tue, 30 Mar 2021 00:44:38 +0200 Subject: [PATCH] remove duplicated code --- mods/ENTITIES/mcl_boats/init.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mods/ENTITIES/mcl_boats/init.lua b/mods/ENTITIES/mcl_boats/init.lua index 29d5c2256a..efb6c073e3 100644 --- a/mods/ENTITIES/mcl_boats/init.lua +++ b/mods/ENTITIES/mcl_boats/init.lua @@ -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")