mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-29 18:28:34 +01:00
Forgotten to remove the ()
This commit is contained in:
parent
6e81b1f265
commit
59e2fd07f0
1 changed files with 9 additions and 9 deletions
|
@ -109,7 +109,7 @@ public class VillageComponentEngineerHouse extends StructureVillagePieces.House1
|
|||
TileEntity compost = this.getTileAtPos(world, 6, 1, 2, sbb);
|
||||
if(compost instanceof TileEntityCompost){
|
||||
TileEntityCompost tile = (TileEntityCompost)compost;
|
||||
tile.stopFromDropping = (ConfigBoolValues.ENGINEER_HOUSE_MACHINES_DROP.isEnabled());
|
||||
tile.stopFromDropping = ConfigBoolValues.ENGINEER_HOUSE_MACHINES_DROP.isEnabled();
|
||||
tile.slots.setStackInSlot(0, new ItemStack(InitItems.itemFertilizer, 10));
|
||||
}
|
||||
}
|
||||
|
@ -117,14 +117,14 @@ public class VillageComponentEngineerHouse extends StructureVillagePieces.House1
|
|||
TileEntity ferment = this.getTileAtPos(world, 11, 1, 0, sbb);
|
||||
if(ferment instanceof TileEntityFermentingBarrel){
|
||||
TileEntityFermentingBarrel tile = (TileEntityFermentingBarrel)ferment;
|
||||
tile.stopFromDropping = (ConfigBoolValues.ENGINEER_HOUSE_MACHINES_DROP.isEnabled());
|
||||
tile.stopFromDropping = ConfigBoolValues.ENGINEER_HOUSE_MACHINES_DROP.isEnabled();
|
||||
tile.canolaTank.setFluid(new FluidStack(InitFluids.fluidCanolaOil, world.rand.nextInt(1500)+200));
|
||||
}
|
||||
|
||||
TileEntity coffee = this.getTileAtPos(world, 4, 2, 6, sbb);
|
||||
if(coffee instanceof TileEntityCoffeeMachine){
|
||||
TileEntityCoffeeMachine tile = (TileEntityCoffeeMachine)coffee;
|
||||
tile.stopFromDropping = (ConfigBoolValues.ENGINEER_HOUSE_MACHINES_DROP.isEnabled());
|
||||
tile.stopFromDropping = ConfigBoolValues.ENGINEER_HOUSE_MACHINES_DROP.isEnabled();
|
||||
tile.tank.setFluid(new FluidStack(FluidRegistry.WATER, world.rand.nextInt(3000)+500));
|
||||
tile.coffeeCacheAmount = world.rand.nextInt(150);
|
||||
tile.storage.setEnergyStored(world.rand.nextInt(tile.storage.getMaxEnergyStored()/2));
|
||||
|
@ -133,7 +133,7 @@ public class VillageComponentEngineerHouse extends StructureVillagePieces.House1
|
|||
TileEntity press = this.getTileAtPos(world, 2, 1, 5, sbb);
|
||||
if(press instanceof TileEntityCanolaPress){
|
||||
TileEntityCanolaPress tile = (TileEntityCanolaPress)press;
|
||||
tile.stopFromDropping = (ConfigBoolValues.ENGINEER_HOUSE_MACHINES_DROP.isEnabled());
|
||||
tile.stopFromDropping = ConfigBoolValues.ENGINEER_HOUSE_MACHINES_DROP.isEnabled();
|
||||
tile.storage.setEnergyStored(world.rand.nextInt(tile.storage.getMaxEnergyStored()/3));
|
||||
tile.slots.setStackInSlot(0, new ItemStack(InitItems.itemMisc, world.rand.nextInt(60)+1, TheMiscItems.CANOLA.ordinal()));
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ public class VillageComponentEngineerHouse extends StructureVillagePieces.House1
|
|||
TileEntity crusher = this.getTileAtPos(world, 2, 1, 6, sbb);
|
||||
if(crusher instanceof TileEntityGrinder){
|
||||
TileEntityGrinder tile = (TileEntityGrinder)crusher;
|
||||
tile.stopFromDropping = (ConfigBoolValues.ENGINEER_HOUSE_MACHINES_DROP.isEnabled());
|
||||
tile.stopFromDropping = ConfigBoolValues.ENGINEER_HOUSE_MACHINES_DROP.isEnabled();
|
||||
tile.storage.setEnergyStored(world.rand.nextInt(tile.storage.getMaxEnergyStored()/2));
|
||||
if(world.rand.nextFloat() >= 0.25F){
|
||||
tile.slots.setStackInSlot(TileEntityGrinder.SLOT_INPUT_1, new ItemStack(InitBlocks.blockMisc, world.rand.nextInt(10)+1, TheMiscBlocks.ORE_QUARTZ.ordinal()));
|
||||
|
@ -151,13 +151,13 @@ public class VillageComponentEngineerHouse extends StructureVillagePieces.House1
|
|||
TileEntity coal = this.getTileAtPos(world, 5, 5, 6, sbb);
|
||||
if(coal instanceof TileEntityCoalGenerator){
|
||||
TileEntityCoalGenerator tile = (TileEntityCoalGenerator)coal;
|
||||
tile.stopFromDropping = (ConfigBoolValues.ENGINEER_HOUSE_MACHINES_DROP.isEnabled());
|
||||
tile.stopFromDropping = ConfigBoolValues.ENGINEER_HOUSE_MACHINES_DROP.isEnabled();
|
||||
tile.slots.setStackInSlot(0, new ItemStack(Items.COAL, world.rand.nextInt(25)+3, 1));
|
||||
}
|
||||
|
||||
TileEntity reconstructor = this.getTileAtPos(world, 8, 4, 3, sbb);
|
||||
if(reconstructor instanceof TileEntityAtomicReconstructor){
|
||||
((TileEntityAtomicReconstructor)reconstructor).stopFromDropping = (ConfigBoolValues.ENGINEER_HOUSE_MACHINES_DROP.isEnabled());
|
||||
((TileEntityAtomicReconstructor)reconstructor).stopFromDropping = ConfigBoolValues.ENGINEER_HOUSE_MACHINES_DROP.isEnabled();
|
||||
}
|
||||
|
||||
VillageComponentJamHouse.generateCrate(world, sbb, this.getXWithOffset(6, 4), this.getYWithOffset(4), this.getZWithOffset(6, 4), DungeonLoot.ENGINEER_HOUSE);
|
||||
|
@ -166,8 +166,8 @@ public class VillageComponentEngineerHouse extends StructureVillagePieces.House1
|
|||
TileEntity firstRelay = this.getTileAtPos(world, 6, 5, 6, sbb);
|
||||
TileEntity secondRelay = this.getTileAtPos(world, 8, 5, 3, sbb);
|
||||
if(firstRelay instanceof TileEntityLaserRelayEnergy && secondRelay instanceof TileEntityLaserRelayEnergy){
|
||||
((TileEntityLaserRelayEnergy)firstRelay).stopFromDropping = (ConfigBoolValues.ENGINEER_HOUSE_MACHINES_DROP.isEnabled());
|
||||
((TileEntityLaserRelayEnergy)secondRelay).stopFromDropping = (ConfigBoolValues.ENGINEER_HOUSE_MACHINES_DROP.isEnabled());
|
||||
((TileEntityLaserRelayEnergy)firstRelay).stopFromDropping = ConfigBoolValues.ENGINEER_HOUSE_MACHINES_DROP.isEnabled();
|
||||
((TileEntityLaserRelayEnergy)secondRelay).stopFromDropping = ConfigBoolValues.ENGINEER_HOUSE_MACHINES_DROP.isEnabled();
|
||||
ActuallyAdditionsAPI.connectionHandler.addConnection(firstRelay.getPos(), secondRelay.getPos(), LaserType.ENERGY, world);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue