mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 09:31:07 +01:00
Fix crash when using nametag
This commit is contained in:
parent
b2fa90cae7
commit
61c5c61e00
1 changed files with 1 additions and 1 deletions
|
@ -2910,7 +2910,7 @@ local on_rightclick_prefix = function(self, clicker)
|
||||||
|
|
||||||
update_tag(self)
|
update_tag(self)
|
||||||
|
|
||||||
if not mobs.is_creative(name) then
|
if not mobs.is_creative(clicker:get_player_name()) then
|
||||||
item:take_item()
|
item:take_item()
|
||||||
player:set_wielded_item(item)
|
player:set_wielded_item(item)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue