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);
this.tileEntity = createSnapshot(state.snapshot);
this.snapshot = tileEntity;
load(snapshot);
loadData(state.getSnapshotNBT());
}
public void refreshSnapshot() {