mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-21 20:42:17 +00:00
Blocks and Entities
This commit is contained in:
1 parent
321fa4ed50
commit
6ac750520c
5 files changed
+37
-26
No files matched your search
@@ -203,7 +203,7 @@ public class BlockCardboardBox extends BlockContainer
|
||||
|
||||
public NBTTagCompound write(NBTTagCompound nbtTags)
|
||||
{
|
||||
nbtTags.setInteger("id", id);
|
||||
nbtTags.setInteger("id", Block.getIdFromBlock(block));
|
||||
nbtTags.setInteger("meta", meta);
|
||||
|
||||
if(tileTag != null)
|
||||
@@ -218,7 +218,7 @@ public class BlockCardboardBox extends BlockContainer
|
||||
{
|
||||
BlockData data = new BlockData();
|
||||
|
||||
data.id = nbtTags.getInteger("id");
|
||||
data.block = Block.getBlockById(nbtTags.getInteger("id"));
|
||||
data.meta = nbtTags.getInteger("meta");
|
||||
|
||||
if(nbtTags.hasKey("tileTag"))
|
||||
|
||||
Reference in new issue
Block a user