mirror of
https://github.com/minetest-mods/digtron.git
synced 2025-01-03 01:27:28 +01:00
Avoid crate corruption when dug with special tools (#53)
This commit is contained in:
parent
d41190a842
commit
6726897413
@ -309,7 +309,7 @@ minetest.register_node("digtron:loaded_crate", {
|
|||||||
|
|
||||||
on_dig = function(pos, node, player)
|
on_dig = function(pos, node, player)
|
||||||
if player and not minetest.is_protected(pos, player:get_player_name()) then
|
if player and not minetest.is_protected(pos, player:get_player_name()) then
|
||||||
loaded_on_dig(pos, player, "digtron:loaded_crate")
|
return loaded_on_dig(pos, player, "digtron:loaded_crate")
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user