Fix ooops

This commit is contained in:
ancientmarinerdev 2023-03-20 13:36:23 +00:00 committed by Gitea
parent bcd7f38fa7
commit ecf72db684

@ -234,7 +234,7 @@ local function register_entity(entity_id, mesh, textures, drop, on_rightclick, o
end
-- Make room in the minecart after the mob dies
elseif self._passenger then
if math.random(1,20) > 1 then
if math.random(1,20) == 1 then
local dead = self._passenger:check_for_death()
if dead == true then
self._passenger = nil