forked from MineClone5/MineClone5
Fix another crash in mcl_mobs
This commit is contained in:
parent
675185ac02
commit
ce04c81482
|
@ -2912,7 +2912,7 @@ local on_rightclick_prefix = function(self, clicker)
|
||||||
|
|
||||||
if not mobs.is_creative(clicker:get_player_name()) then
|
if not mobs.is_creative(clicker:get_player_name()) then
|
||||||
item:take_item()
|
item:take_item()
|
||||||
player:set_wielded_item(item)
|
clicker:set_wielded_item(item)
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue