From 59e2fd07f052de4b321cf8def2348c0889f3d853 Mon Sep 17 00:00:00 2001 From: Christian Henrique Falaschi da Silva <30323772+ReiDaTecnologia@users.noreply.github.com> Date: Thu, 7 Jun 2018 08:35:19 -0300 Subject: [PATCH] Forgotten to remove the () --- .../VillageComponentEngineerHouse.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/gen/village/component/VillageComponentEngineerHouse.java b/src/main/java/de/ellpeck/actuallyadditions/mod/gen/village/component/VillageComponentEngineerHouse.java index 78759939a..f394fba2d 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/gen/village/component/VillageComponentEngineerHouse.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/gen/village/component/VillageComponentEngineerHouse.java @@ -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); }