From aa8422631edb0524d1c07afa3de1d381537bd8fd Mon Sep 17 00:00:00 2001 From: dontmindmehere Date: Tue, 5 Nov 2024 20:22:26 -0300 Subject: [PATCH] change random(4) to random(0, 3) on crop sheet:4x4 for texture --- api/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api.lua b/api/api.lua index daa4235..7f90705 100644 --- a/api/api.lua +++ b/api/api.lua @@ -348,7 +348,7 @@ function animalia.add_food_particle(self, item_name) image = def.tiles[1].name or def.tiles[1] end if image then - local crop = "^[sheet:4x4:" .. random(4) .. "," .. random(4) + local crop = "^[sheet:4x4:" .. random(0, 3) .. "," .. random(0, 3) minetest.add_particlespawner({ pos = head_pos, time = 0.5,