Create: The Factory Must Grow

Create: The Factory Must Grow

4M Downloads

Specify rpm needed for air intake to give air to diesel engine

User8395 opened this issue ยท 0 comments

commented

I spent waaaaay too long trying to figure out why my diesel engines wouldn't start, until I looked in the code and saw this

        int production = ((int) maxShaftSpeed * ((diameter * diameter))) / 40;
        if (tankInventory.getFluidAmount() + production <= tankInventory.getCapacity()) {
            //tankInventory.fill(new FluidStack(TFMGFluids.AIR.getSource(), production), IFluidHandler.FluidAction.EXECUTE);
            tankInventory.setFluid(new FluidStack(FluidHelper.convertToStill(TFMGFluids.AIR.get()), production + tankInventory.getFluidAmount()));
           // if(controller!=null) {
           //     ((AirIntakeBlockEntity) level.getBlockEntity(controller)).setChanged();
           //     ((AirIntakeBlockEntity) level.getBlockEntity(controller)).sendData();
           // }
        }

After setting my rpm to 40 it finally worked, but the ponder never specified this.