mirror of
https://github.com/Sokomine/cottages.git
synced 2025-07-12 04:40:20 +02:00
remove dependency on futil
This commit is contained in:
@ -15,8 +15,8 @@ local v_eq = vector.equals
|
||||
local v_new = vector.new
|
||||
local v_sub = vector.subtract
|
||||
|
||||
local get_safe_short_description = futil.get_safe_short_description
|
||||
local resolve_item = futil.resolve_item
|
||||
local get_safe_short_description = cottages.util.get_safe_short_description
|
||||
local resolve_item = cottages.util.resolve_item
|
||||
|
||||
local has_stamina = cottages.has.stamina
|
||||
|
||||
|
@ -50,7 +50,7 @@ function barrel.get_barrel_fs_parts(pos)
|
||||
math.floor(max_liquid_amount * liquid_amount / max_liquid_amount),
|
||||
F(
|
||||
liquid_texture
|
||||
.. futil.escape_texture(("^[resize:%ix%i"):format(max_liquid_amount, max_liquid_amount))
|
||||
.. cottages.util.escape_texture(("^[resize:%ix%i"):format(max_liquid_amount, max_liquid_amount))
|
||||
)
|
||||
)
|
||||
)
|
||||
@ -76,7 +76,7 @@ function barrel.get_barrel_fs_parts(pos)
|
||||
0,
|
||||
F(
|
||||
cottages.textures.furniture
|
||||
.. futil.escape_texture(("^[resize:%ix%i"):format(max_liquid_amount, max_liquid_amount))
|
||||
.. cottages.util.escape_texture(("^[resize:%ix%i"):format(max_liquid_amount, max_liquid_amount))
|
||||
)
|
||||
)
|
||||
)
|
||||
|
@ -91,7 +91,7 @@ function api.register_feldweg(node, suffix, special)
|
||||
local def = minetest.registered_nodes[node]
|
||||
local texture_top, texture_bottom, texture_side, texture_side_with_dent, texture_edges =
|
||||
get_textures(def.tiles, special)
|
||||
local desc = futil.get_safe_short_description(node)
|
||||
local desc = cottages.util.get_safe_short_description(node)
|
||||
local feldweg_name = "cottages:feldweg" .. suffix
|
||||
|
||||
register_feldweg(feldweg_name, def, {
|
||||
|
@ -6,7 +6,7 @@ local FS = function(...)
|
||||
return F(S(...))
|
||||
end
|
||||
|
||||
local get_safe_short_description = futil.get_safe_short_description
|
||||
local get_safe_short_description = cottages.util.get_safe_short_description
|
||||
|
||||
local has_stamina = cottages.has.stamina
|
||||
local stamina_use = cottages.settings.straw.quern_stamina
|
||||
|
@ -6,7 +6,7 @@ local FS = function(...)
|
||||
return F(S(...))
|
||||
end
|
||||
|
||||
local get_safe_short_description = futil.get_safe_short_description
|
||||
local get_safe_short_description = cottages.util.get_safe_short_description
|
||||
|
||||
local has_stamina = cottages.has.stamina
|
||||
local stamina_use = cottages.settings.straw.threshing_stamina
|
||||
|
Reference in New Issue
Block a user