From f476e4308442bfd7eb3970565a6c21d6434e9101 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Tue, 13 Feb 2024 15:33:37 +0000 Subject: [PATCH] Fix initial_properties for minecarts --- mods/ENTITIES/mcl_minecarts/init.lua | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/mods/ENTITIES/mcl_minecarts/init.lua b/mods/ENTITIES/mcl_minecarts/init.lua index 1b607adf1..a52e687c2 100644 --- a/mods/ENTITIES/mcl_minecarts/init.lua +++ b/mods/ENTITIES/mcl_minecarts/init.lua @@ -184,12 +184,14 @@ local entity_mapping = {} local function register_entity(entity_id, mesh, textures, drop, on_rightclick, on_activate_by_rail) local cart = { - physical = false, - collisionbox = {-10/16., -0.5, -10/16, 10/16, 0.25, 10/16}, - visual = "mesh", - mesh = mesh, - visual_size = {x=1, y=1}, - textures = textures, + initial_properties = { + physical = false, + collisionbox = {-10/16., -0.5, -10/16, 10/16, 0.25, 10/16}, + visual = "mesh", + mesh = mesh, + visual_size = {x=1, y=1}, + textures = textures, + }, on_rightclick = on_rightclick,