Fix inverted hoppers

This commit is contained in:
Shadowfacts 2017-01-16 18:38:15 -05:00
parent 92cb972d67
commit b52085b720
3 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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 }