Fix copying BlockStates with fields (eg, Banner)

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2024-03-06 06:57:15 +11:00
parent 6864ed6fba
commit 39994359d1

View File

@@ -32,7 +32,7 @@ public class CraftBlockEntityState<T extends TileEntity> extends CraftBlockState
super(state); super(state);
this.tileEntity = createSnapshot(state.snapshot); this.tileEntity = createSnapshot(state.snapshot);
this.snapshot = tileEntity; this.snapshot = tileEntity;
load(snapshot); loadData(state.getSnapshotNBT());
} }
public void refreshSnapshot() { public void refreshSnapshot() {