Work on fusion fuel creation mechanics, allowed Chemical Washer to accept upgrades

This commit is contained in:
Aidan C. Brady committed 2015-02-17 21:27:35 -05:00
1 parent cb2e38ec61
commit 25df777b84
40 files changed
+210 -98

No files matched your search

@@ -142,6 +142,11 @@ public class TileComponentUpgrade implements ITileComponent
{
return supported;
}
public void clearSupportedTypes()
{
supported.clear();
}
@Override
public void read(ByteBuf dataStream)
@@ -181,6 +186,7 @@ public class TileComponentUpgrade implements ITileComponent
public void read(NBTTagCompound nbtTags)
{
upgrades = Upgrade.buildMap(nbtTags);
for(Upgrade upgrade : getSupportedTypes())
{
tileEntity.recalculateUpgradables(upgrade);