Fixed dropped or picked blocks not always stacking
This commit is contained in:
parent
67d8620f32
commit
e5f0f7e918
2 changed files with 6 additions and 2 deletions
|
@ -206,7 +206,9 @@ public abstract class BlockAbstractContainer extends BlockContainer implements I
|
|||
final NBTTagCompound tagCompound = new NBTTagCompound();
|
||||
if (tileEntity instanceof TileEntityAbstractBase) {
|
||||
((TileEntityAbstractBase) tileEntity).writeItemDropNBT(tagCompound);
|
||||
itemStack.setTagCompound(tagCompound);
|
||||
if (!tagCompound.isEmpty()) {
|
||||
itemStack.setTagCompound(tagCompound);
|
||||
}
|
||||
}
|
||||
return itemStack;
|
||||
}
|
||||
|
|
|
@ -729,7 +729,9 @@ public class TileEntityLaser extends TileEntityAbstractLaser implements IBeamFre
|
|||
@Override
|
||||
public NBTTagCompound writeToNBT(NBTTagCompound tagCompound) {
|
||||
tagCompound = super.writeToNBT(tagCompound);
|
||||
tagCompound.setInteger(IBeamFrequency.BEAM_FREQUENCY_TAG, beamFrequency);
|
||||
if (IBeamFrequency.isValid(beamFrequency)) {
|
||||
tagCompound.setInteger(IBeamFrequency.BEAM_FREQUENCY_TAG, beamFrequency);
|
||||
}
|
||||
return tagCompound;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue