From e08505d24d16de332324800522ddd0fcaaa3edd5 Mon Sep 17 00:00:00 2001
From: teknomunk <teknomunk@protonmail.com>
Date: Sat, 11 Jan 2025 08:12:20 -0600
Subject: [PATCH] Make hopper minecart pull items from containers when stopped

---
 mods/ENTITIES/mcl_minecarts/carts/with_hopper.lua | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/mods/ENTITIES/mcl_minecarts/carts/with_hopper.lua b/mods/ENTITIES/mcl_minecarts/carts/with_hopper.lua
index 5487d7bb3..b059d6e7f 100644
--- a/mods/ENTITIES/mcl_minecarts/carts/with_hopper.lua
+++ b/mods/ENTITIES/mcl_minecarts/carts/with_hopper.lua
@@ -169,6 +169,11 @@ mod.register_minecart({
 	end,
 	_mcl_minecarts_on_step = function(self, dtime)
 		hopper_take_item(self, dtime)
+
+		local staticdata = self._staticdata
+		local pos = mcl_minecarts.get_cart_position(staticdata)
+
+		self._mcl_minecarts_on_enter(self, pos, staticdata)
 	end,
 	creative = true
 })