mirror of
https://codeberg.org/usrib/emeraldbank.git
synced 2024-12-22 14:12:26 +01:00
on_blast return nil
This commit is contained in:
parent
60ea141437
commit
ec1c0dcb17
@ -1,8 +1,9 @@
|
||||
unused_args = false
|
||||
allow_defined_top = true
|
||||
max_line_length = 300
|
||||
|
||||
globals = {
|
||||
"minetest","atm","emeraldbank",
|
||||
"minetest", "atm", "emeraldbank", "pipeworks", "digilines",
|
||||
}
|
||||
|
||||
read_globals = {
|
||||
@ -44,5 +45,5 @@ read_globals = {
|
||||
"mcl_formspec", "mcl_death_messages", "mcl_bossbars", "awards",
|
||||
"mcl_inventory", "mcl_title", "mcl_offhand", "hb", "mcl_experience",
|
||||
"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.
|
||||
|
||||
@ -44,6 +44,7 @@ display_node_def.drop = ""
|
||||
display_node_def.pointable = false
|
||||
display_node_def.groups.not_in_creative_inventory = 1
|
||||
display_node_def.description = S("Fancy Vendor Display Node (you hacker you!)")
|
||||
display_node_def.on_blast = function() return nil end
|
||||
if pipeworks then
|
||||
display_node_def.digiline = {
|
||||
wire = {
|
||||
@ -1439,7 +1440,8 @@ local vendor_template = {
|
||||
refresh_vendor(pos)
|
||||
end,
|
||||
on_blast = function()
|
||||
-- TNT immunity
|
||||
-- TNT immunity
|
||||
return nil
|
||||
end,
|
||||
}
|
||||
|
||||
@ -1654,6 +1656,9 @@ local base_upgrade_template = {
|
||||
if player:get_player_name() ~= meta:get_string("owner") then return 0 end
|
||||
return stack:get_count()
|
||||
end,
|
||||
on_blast = function()
|
||||
return nil
|
||||
end,
|
||||
}
|
||||
|
||||
local clear_craft_vendors = {}
|
||||
@ -1681,6 +1686,9 @@ if old_vendor_mods_table["emeraldbank"] then
|
||||
core.get_node_timer(pos):start(shop_timer)
|
||||
emeraldbank.get_stonks(pos)
|
||||
end
|
||||
emeraldbank_template.on_blast = function()
|
||||
return nil
|
||||
end
|
||||
minetest.override_item("emeraldbank:shop", emeraldbank_template)
|
||||
table.insert(clear_craft_vendors, "emeraldbank:shop")
|
||||
minetest.override_item("emeraldbank:shop_empty", emeraldbank_template)
|
||||
@ -1713,6 +1721,9 @@ if old_vendor_mods_table["currency"] then
|
||||
)
|
||||
end
|
||||
end
|
||||
currency_template.on_blast = function()
|
||||
return nil
|
||||
end
|
||||
|
||||
minetest.register_node(":currency:shop", currency_template)
|
||||
|
||||
@ -1753,6 +1764,9 @@ if old_vendor_mods_table["money"] then
|
||||
)
|
||||
end
|
||||
end
|
||||
money_template.on_blast = function()
|
||||
return nil
|
||||
end
|
||||
local nodes = {"money:barter_shop", "money:shop", "money:admin_shop", "money:admin_barter_shop"}
|
||||
for i in pairs(nodes) do
|
||||
minetest.register_node(":"..nodes[i], money_template)
|
||||
|
Loading…
Reference in New Issue
Block a user