Fixes a small issue when placing a block with NBT from creative mode's "ctrl + pick block". Originally, MTE initial sync is called within MetaTileEntityHolder#setMetaTileEntity() before the MTE is set with readFromNBT(), which gives the client incorrect info.
MetaTileEntityHolder#setMetaTileEntity() is moved after the mte tag is handled, and the method was overloaded to accept the tag for the MTE to read before syncing.
Implementation Details
overload of method MetaTileEntityHolder#setMetaTileEntity() along with a default to maintain backwards compat
Outcome
using ctrl + pick block to copy MTEs now sync the correct data to client on initial sync
What
Fixes a small issue when placing a block with NBT from creative mode's "ctrl + pick block". Originally, MTE initial sync is called within
MetaTileEntityHolder#setMetaTileEntity()
before the MTE is set withreadFromNBT()
, which gives the client incorrect info.MetaTileEntityHolder#setMetaTileEntity()
is moved after the mte tag is handled, and the method was overloaded to accept the tag for the MTE to read before syncing.Implementation Details
overload of method
MetaTileEntityHolder#setMetaTileEntity()
along with a default to maintain backwards compatOutcome
using ctrl + pick block to copy MTEs now sync the correct data to client on initial sync