From e537474c8b76acb4ad06ba29ea66ac22b895906f Mon Sep 17 00:00:00 2001 From: simibubi <31564874+simibubi@users.noreply.github.com> Date: Wed, 20 Nov 2019 23:03:07 +0100 Subject: [PATCH] Fix the Belt IItemhandler - Inserting items now gets synced to clients again --- .../contraptions/relays/belt/ItemHandlerBeltSegment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/simibubi/create/modules/contraptions/relays/belt/ItemHandlerBeltSegment.java b/src/main/java/com/simibubi/create/modules/contraptions/relays/belt/ItemHandlerBeltSegment.java index a4f1e2f62..dc930066c 100644 --- a/src/main/java/com/simibubi/create/modules/contraptions/relays/belt/ItemHandlerBeltSegment.java +++ b/src/main/java/com/simibubi/create/modules/contraptions/relays/belt/ItemHandlerBeltSegment.java @@ -35,6 +35,8 @@ public class ItemHandlerBeltSegment implements IItemHandler { newStack.beltPosition = offset + .5f; newStack.prevBeltPosition = newStack.beltPosition; this.beltInventory.insert(newStack); + this.beltInventory.belt.markDirty(); + this.beltInventory.belt.sendData(); } return ItemStack.EMPTY; }