From 5a20950902696c4b9c7895b8b1145cbc2d331883 Mon Sep 17 00:00:00 2001 From: bloodmc Date: Mon, 2 May 2016 18:21:59 -0400 Subject: [PATCH] Call markDirty when restoring blocks with TileEntities. (#2809) This change makes sure the updated tileentity is saved properly within the chunk. --- src/main/java/net/minecraftforge/common/util/BlockSnapshot.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/minecraftforge/common/util/BlockSnapshot.java b/src/main/java/net/minecraftforge/common/util/BlockSnapshot.java index dd6bbe2e0..6df3e7d31 100644 --- a/src/main/java/net/minecraftforge/common/util/BlockSnapshot.java +++ b/src/main/java/net/minecraftforge/common/util/BlockSnapshot.java @@ -178,6 +178,7 @@ public class BlockSnapshot implements Serializable if (te != null) { te.readFromNBT(getNbt()); + te.markDirty(); } } @@ -213,6 +214,7 @@ public class BlockSnapshot implements Serializable if (te != null) { te.readFromNBT(getNbt()); + te.markDirty(); } }