1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-04 23:53:01 +00:00

Update CT integration

Sadly we have to disable -Werror, as the annotation class files are not
available on maven, so this produces a warning.
This commit is contained in:
SquidDev
2019-12-24 19:16:06 +00:00
parent 037cbabb32
commit 4320a4f851
12 changed files with 240 additions and 127 deletions

View File

@@ -66,12 +66,10 @@ public class ItemTurtle extends ItemComputerBase implements ITurtleItem
ComputerFamily family = getFamily();
list.add( create( -1, null, -1, null, null, 0, null ) );
for( ITurtleUpgrade upgrade : TurtleUpgrades.getVanillaUpgrades() )
{
if( !TurtleUpgrades.suitableForFamily( family, upgrade ) ) continue;
list.add( create( -1, null, -1, null, upgrade, 0, null ) );
}
TurtleUpgrades.getVanillaUpgrades()
.filter( x -> TurtleUpgrades.suitableForFamily( family, x ) )
.map( x -> create( -1, null, -1, null, x, 0, null ) )
.forEach( list::add );
}
@Nonnull

View File

@@ -65,7 +65,7 @@ public class TurtleTool extends AbstractTurtleUpgrade
public TurtleTool( ResourceLocation id, ItemStack craftItem, ItemStack toolItem )
{
super( id, -1, TurtleUpgradeType.Tool, craftItem );
super( id, TurtleUpgradeType.Tool, craftItem );
this.item = toolItem;
}