Fix inverted hoppers
This commit is contained in:
parent
92cb972d67
commit
b52085b720
|
@ -18,7 +18,7 @@ import net.shadowfacts.forgelin.extensions.isEmpty
|
||||||
/**
|
/**
|
||||||
* @author shadowfacts
|
* @author shadowfacts
|
||||||
*/
|
*/
|
||||||
class TileEntityInvertedHopper: TileEntityHopperBase(), ITickable {
|
class TileEntityInvertedHopper: TileEntityHopperBase(true), ITickable {
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
val COOLDOWN = 8
|
val COOLDOWN = 8
|
||||||
|
|
|
@ -17,7 +17,7 @@ import net.shadowfacts.forgelin.extensions.get
|
||||||
/**
|
/**
|
||||||
* @author shadowfacts
|
* @author shadowfacts
|
||||||
*/
|
*/
|
||||||
class TileEntityWoodenHopper: TileEntityHopperBase(), ITickable {
|
class TileEntityWoodenHopper(inverted: Boolean): TileEntityHopperBase(inverted), ITickable {
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
val COOLDOWN = 24
|
val COOLDOWN = 24
|
||||||
|
@ -27,6 +27,8 @@ class TileEntityWoodenHopper: TileEntityHopperBase(), ITickable {
|
||||||
|
|
||||||
var cooldown = COOLDOWN
|
var cooldown = COOLDOWN
|
||||||
|
|
||||||
|
constructor(): this(false)
|
||||||
|
|
||||||
override fun update() {
|
override fun update() {
|
||||||
if (!world.isRemote) {
|
if (!world.isRemote) {
|
||||||
if (isPowered()) return
|
if (isPowered()) return
|
||||||
|
|
|
@ -7,7 +7,9 @@ import net.shadowfacts.extrahoppers.block.fluid.TileEntityFluidHopper
|
||||||
/**
|
/**
|
||||||
* @author shadowfacts
|
* @author shadowfacts
|
||||||
*/
|
*/
|
||||||
class TileEntityWoodenFluidHopper: TileEntityFluidHopper() {
|
class TileEntityWoodenFluidHopper(inverted: Boolean): TileEntityFluidHopper(inverted) {
|
||||||
|
|
||||||
|
constructor(): this(false)
|
||||||
|
|
||||||
override val fluidValiator: (FluidStack) -> Boolean = { it.fluid.temperature <= EHConfig.wfhMaxTemperature }
|
override val fluidValiator: (FluidStack) -> Boolean = { it.fluid.temperature <= EHConfig.wfhMaxTemperature }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue