Replace minetest namespace with core (#158)

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
This commit is contained in:
The4codeblocks
2025-06-26 02:41:04 -05:00
committed by GitHub
parent d39ff8a097
commit 2ebc4ac92d
34 changed files with 619 additions and 617 deletions

View File

@ -1,4 +1,4 @@
local S = minetest.get_translator("pipeworks")
local S = core.get_translator("pipeworks")
local straight = function(pos, node, velocity, stack) return {velocity} end
@ -10,10 +10,10 @@ local pane_box = {
}
}
local texture_alpha_mode = minetest.features.use_texture_alpha_string_modes
local texture_alpha_mode = core.features.use_texture_alpha_string_modes
and "clip" or true
minetest.register_node("pipeworks:steel_pane_embedded_tube", {
core.register_node("pipeworks:steel_pane_embedded_tube", {
drawtype = "nodebox",
description = S("Airtight panel embedded tube"),
tiles = {
@ -42,7 +42,7 @@ minetest.register_node("pipeworks:steel_pane_embedded_tube", {
priority = 50,
can_go = straight,
can_insert = function(pos, node, stack, direction)
local dir = minetest.facedir_to_dir(node.param2)
local dir = core.facedir_to_dir(node.param2)
return vector.equals(dir, direction) or vector.equals(vector.multiply(dir, -1), direction)
end,
},