Created
February 4, 2017 22:57
-
-
Save Ivorforce/d428a93f206408b682bb7cc9a34e1bb6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WorldServer world = context.environment.world; | |
if (context.setBlock(worldPos, state, 2)) | |
{ | |
NBTTagCompound tileEntityCompound = tileEntity.get(); | |
if (tileEntityCompound != null && world.getBlockState(worldPos).getBlock() == state.getBlock()) | |
{ | |
TileEntity worldTileEntity = world.getTileEntity(worldPos); | |
if (worldTileEntity != null) | |
{ | |
worldTileEntity.readFromNBT(tileEntityCompound); | |
Mover.setTileEntityPos(worldTileEntity, worldPos); | |
generateTileEntityContents(context, worldTileEntity); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment