diff --git a/api/api.lua b/api/api.lua index 2e8bd5a..7f90705 100644 --- a/api/api.lua +++ b/api/api.lua @@ -347,8 +347,8 @@ function animalia.add_food_particle(self, item_name) if def.tiles then image = def.tiles[1].name or def.tiles[1] end - if image and image ~= "" then - local crop = "^[sheet:4x4:" .. random(4) .. "," .. random(4) + if image then + local crop = "^[sheet:4x4:" .. random(0, 3) .. "," .. random(0, 3) minetest.add_particlespawner({ pos = head_pos, time = 0.5,