mirror of
https://codeberg.org/usrib/emeraldbank.git
synced 2025-01-03 11:57:32 +01:00
on_blast return nil
This commit is contained in:
parent
60ea141437
commit
ec1c0dcb17
@ -1,8 +1,9 @@
|
|||||||
unused_args = false
|
unused_args = false
|
||||||
allow_defined_top = true
|
allow_defined_top = true
|
||||||
|
max_line_length = 300
|
||||||
|
|
||||||
globals = {
|
globals = {
|
||||||
"minetest","atm","emeraldbank",
|
"minetest", "atm", "emeraldbank", "pipeworks", "digilines",
|
||||||
}
|
}
|
||||||
|
|
||||||
read_globals = {
|
read_globals = {
|
||||||
@ -44,5 +45,5 @@ read_globals = {
|
|||||||
"mcl_formspec", "mcl_death_messages", "mcl_bossbars", "awards",
|
"mcl_formspec", "mcl_death_messages", "mcl_bossbars", "awards",
|
||||||
"mcl_inventory", "mcl_title", "mcl_offhand", "hb", "mcl_experience",
|
"mcl_inventory", "mcl_title", "mcl_offhand", "hb", "mcl_experience",
|
||||||
"mcl_info", "mcl_credits", "tsm_railcorridors", "mcl_mapgen_core",
|
"mcl_info", "mcl_credits", "tsm_railcorridors", "mcl_mapgen_core",
|
||||||
"mcl_structures", "settlements", "mcl_dungeons", "mcl_colors_official"
|
"mcl_structures", "settlements", "mcl_dungeons", "mcl_colors_official",
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
|
|
||||||
-- Copyright (C) 2021, 2023 Ale
|
-- Copyright (C) 2021, 2024 Sandro del Toro
|
||||||
|
|
||||||
-- This file is part of Emeraldbank Minetest Mod.
|
-- This file is part of Emeraldbank Minetest Mod.
|
||||||
|
|
||||||
@ -44,6 +44,7 @@ display_node_def.drop = ""
|
|||||||
display_node_def.pointable = false
|
display_node_def.pointable = false
|
||||||
display_node_def.groups.not_in_creative_inventory = 1
|
display_node_def.groups.not_in_creative_inventory = 1
|
||||||
display_node_def.description = S("Fancy Vendor Display Node (you hacker you!)")
|
display_node_def.description = S("Fancy Vendor Display Node (you hacker you!)")
|
||||||
|
display_node_def.on_blast = function() return nil end
|
||||||
if pipeworks then
|
if pipeworks then
|
||||||
display_node_def.digiline = {
|
display_node_def.digiline = {
|
||||||
wire = {
|
wire = {
|
||||||
@ -1440,6 +1441,7 @@ local vendor_template = {
|
|||||||
end,
|
end,
|
||||||
on_blast = function()
|
on_blast = function()
|
||||||
-- TNT immunity
|
-- TNT immunity
|
||||||
|
return nil
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1654,6 +1656,9 @@ local base_upgrade_template = {
|
|||||||
if player:get_player_name() ~= meta:get_string("owner") then return 0 end
|
if player:get_player_name() ~= meta:get_string("owner") then return 0 end
|
||||||
return stack:get_count()
|
return stack:get_count()
|
||||||
end,
|
end,
|
||||||
|
on_blast = function()
|
||||||
|
return nil
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
local clear_craft_vendors = {}
|
local clear_craft_vendors = {}
|
||||||
@ -1681,6 +1686,9 @@ if old_vendor_mods_table["emeraldbank"] then
|
|||||||
core.get_node_timer(pos):start(shop_timer)
|
core.get_node_timer(pos):start(shop_timer)
|
||||||
emeraldbank.get_stonks(pos)
|
emeraldbank.get_stonks(pos)
|
||||||
end
|
end
|
||||||
|
emeraldbank_template.on_blast = function()
|
||||||
|
return nil
|
||||||
|
end
|
||||||
minetest.override_item("emeraldbank:shop", emeraldbank_template)
|
minetest.override_item("emeraldbank:shop", emeraldbank_template)
|
||||||
table.insert(clear_craft_vendors, "emeraldbank:shop")
|
table.insert(clear_craft_vendors, "emeraldbank:shop")
|
||||||
minetest.override_item("emeraldbank:shop_empty", emeraldbank_template)
|
minetest.override_item("emeraldbank:shop_empty", emeraldbank_template)
|
||||||
@ -1713,6 +1721,9 @@ if old_vendor_mods_table["currency"] then
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
currency_template.on_blast = function()
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_node(":currency:shop", currency_template)
|
minetest.register_node(":currency:shop", currency_template)
|
||||||
|
|
||||||
@ -1753,6 +1764,9 @@ if old_vendor_mods_table["money"] then
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
money_template.on_blast = function()
|
||||||
|
return nil
|
||||||
|
end
|
||||||
local nodes = {"money:barter_shop", "money:shop", "money:admin_shop", "money:admin_barter_shop"}
|
local nodes = {"money:barter_shop", "money:shop", "money:admin_shop", "money:admin_barter_shop"}
|
||||||
for i in pairs(nodes) do
|
for i in pairs(nodes) do
|
||||||
minetest.register_node(":"..nodes[i], money_template)
|
minetest.register_node(":"..nodes[i], money_template)
|
||||||
|
Loading…
Reference in New Issue
Block a user