1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-27 23:10:33 +02:00

Make 3dchests burst when hit by fireballs

- Solves #221
This commit is contained in:
LeMagnesium 2015-08-17 10:56:53 +02:00
parent 2cd80bccf1
commit 7f78ccf906

View File

@ -1340,7 +1340,7 @@ function mobs:explosion(pos, radius, fire, smoke, sound)
and not minetest.is_protected(p, "") --/MFF (Crabman|06/23/2015) re-added node protected in areas
and minetest.get_item_group(n, "unbreakable") ~= 1 then
-- if chest then drop items inside
if n == "default:chest" then
if n == "default:chest" or n == "3dchest:chest" then
local meta = minetest.get_meta(p)
local inv = meta:get_inventory()
for i = 1,32 do