Fix a crash with new versions of Minetest.
This commit is contained in:
parent
c1364a0bae
commit
d46f1c6690
@ -1,2 +1,3 @@
|
||||
default
|
||||
vessels
|
||||
vessels
|
||||
nyancat?
|
11
init.lua
11
init.lua
@ -73,14 +73,21 @@ tnt_extras.register_blast_resistant("default:diamondblock" ,2)
|
||||
tnt_extras.register_blast_resistant("default:obsidian" ,1)
|
||||
tnt_extras.register_blast_resistant("default:obsidianbrick" ,.9)
|
||||
tnt_extras.register_blast_resistant("default:mese" ,.6)
|
||||
tnt_extras.register_blast_resistant("default:nyancat" ,.8)
|
||||
tnt_extras.register_blast_resistant("default:nyancat_rainbow" ,.8)
|
||||
tnt_extras.register_blast_resistant("default:desert_stonebrick",.35)
|
||||
tnt_extras.register_blast_resistant("default:sandstonebrick",.35)
|
||||
tnt_extras.register_blast_resistant("default:stonebrick",.35)
|
||||
tnt_extras.register_blast_resistant("default:brick",.35)
|
||||
tnt_extras.register_blast_resistant("default:cloud",10)
|
||||
|
||||
-- Check if nyancats are registered
|
||||
if minetest.registered_nodes["nyancat:nyancat"] ~= nil then
|
||||
tnt_extras.register_blast_resistant("nyancat:nyancat" ,.8)
|
||||
tnt_extras.register_blast_resistant("nyancat:nyancat_rainbow" ,.8)
|
||||
elseif minetest.registered_nodes["default:nyancat"] ~= nil then
|
||||
tnt_extras.register_blast_resistant("default:nyancat" ,.8)
|
||||
tnt_extras.register_blast_resistant("default:nyancat_rainbow" ,.8)
|
||||
end
|
||||
|
||||
-- Register nodes that melt into water_source
|
||||
tnt_extras.register_can_melt("default:snowblock")
|
||||
tnt_extras.register_can_melt("default:ice")
|
Loading…
x
Reference in New Issue
Block a user