Update init.lua

master
Elkien3 2022-08-09 10:13:06 -05:00
parent 28f967221d
commit 39d3f21c96
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ minetest.register_entity("anticombatlog:entity", {
end
local allowfunc = function(inv, listname, index, stack, player, count)
if not self then return 0 end
if not self or not self.object or not self.object:get_pos() then return 0 end
if count then
return count
else