mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-05 06:53:52 +01:00
don't run the damage ABM if damage is disabled on the server.
This commit is contained in:
parent
cf75916ea7
commit
b00e942824
@ -569,6 +569,10 @@ end
|
|||||||
local assumed_abdomen_offset = vector.new(0, 1, 0)
|
local assumed_abdomen_offset = vector.new(0, 1, 0)
|
||||||
local assumed_abdomen_offset_length = vector.length(assumed_abdomen_offset)
|
local assumed_abdomen_offset_length = vector.length(assumed_abdomen_offset)
|
||||||
local cache_scaled_shielding = {}
|
local cache_scaled_shielding = {}
|
||||||
|
|
||||||
|
local damage_enabled = minetest.setting_getbool("enable_damage")
|
||||||
|
|
||||||
|
if damage_enabled then
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"group:radioactive"},
|
nodenames = {"group:radioactive"},
|
||||||
interval = 1,
|
interval = 1,
|
||||||
@ -610,6 +614,7 @@ minetest.register_abm({
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
-- radioactive materials that can result from destroying a reactor
|
-- radioactive materials that can result from destroying a reactor
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user