diff --git a/src/main/kotlin/net/shadowfacts/extrahoppers/block/inverted/TileEntityInvertedHopper.kt b/src/main/kotlin/net/shadowfacts/extrahoppers/block/inverted/TileEntityInvertedHopper.kt index 906ae15..75b2edc 100644 --- a/src/main/kotlin/net/shadowfacts/extrahoppers/block/inverted/TileEntityInvertedHopper.kt +++ b/src/main/kotlin/net/shadowfacts/extrahoppers/block/inverted/TileEntityInvertedHopper.kt @@ -18,7 +18,7 @@ import net.shadowfacts.forgelin.extensions.isEmpty /** * @author shadowfacts */ -class TileEntityInvertedHopper: TileEntityHopperBase(), ITickable { +class TileEntityInvertedHopper: TileEntityHopperBase(true), ITickable { companion object { val COOLDOWN = 8 diff --git a/src/main/kotlin/net/shadowfacts/extrahoppers/block/wooden/TileEntityWoodenHopper.kt b/src/main/kotlin/net/shadowfacts/extrahoppers/block/wooden/TileEntityWoodenHopper.kt index 660618d..9c7aef8 100644 --- a/src/main/kotlin/net/shadowfacts/extrahoppers/block/wooden/TileEntityWoodenHopper.kt +++ b/src/main/kotlin/net/shadowfacts/extrahoppers/block/wooden/TileEntityWoodenHopper.kt @@ -17,7 +17,7 @@ import net.shadowfacts.forgelin.extensions.get /** * @author shadowfacts */ -class TileEntityWoodenHopper: TileEntityHopperBase(), ITickable { +class TileEntityWoodenHopper(inverted: Boolean): TileEntityHopperBase(inverted), ITickable { companion object { val COOLDOWN = 24 @@ -27,6 +27,8 @@ class TileEntityWoodenHopper: TileEntityHopperBase(), ITickable { var cooldown = COOLDOWN + constructor(): this(false) + override fun update() { if (!world.isRemote) { if (isPowered()) return diff --git a/src/main/kotlin/net/shadowfacts/extrahoppers/block/wooden_fluid/TileEntityWoodenFluidHopper.kt b/src/main/kotlin/net/shadowfacts/extrahoppers/block/wooden_fluid/TileEntityWoodenFluidHopper.kt index 8687cab..a2d82b1 100644 --- a/src/main/kotlin/net/shadowfacts/extrahoppers/block/wooden_fluid/TileEntityWoodenFluidHopper.kt +++ b/src/main/kotlin/net/shadowfacts/extrahoppers/block/wooden_fluid/TileEntityWoodenFluidHopper.kt @@ -7,7 +7,9 @@ import net.shadowfacts.extrahoppers.block.fluid.TileEntityFluidHopper /** * @author shadowfacts */ -class TileEntityWoodenFluidHopper: TileEntityFluidHopper() { +class TileEntityWoodenFluidHopper(inverted: Boolean): TileEntityFluidHopper(inverted) { + + constructor(): this(false) override val fluidValiator: (FluidStack) -> Boolean = { it.fluid.temperature <= EHConfig.wfhMaxTemperature }