mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-23 16:30:19 +01:00
Updated metatools
- Prevented crash when punching entity
This commit is contained in:
parent
ca78720cc6
commit
a93eed6950
@ -36,6 +36,7 @@ minetest.register_craftitem("metatools:stick",{
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
local username = user:get_player_name()
|
||||
local nodepos = pointed_thing.under
|
||||
if not nodepos or not minetest.get_node(nodepos) then return end
|
||||
local nodename = minetest.get_node(nodepos).name
|
||||
local node = minetest.registered_nodes[nodename]
|
||||
local meta = minetest.get_meta(nodepos)
|
||||
|
Loading…
Reference in New Issue
Block a user