Remove old code

This commit is contained in:
Shadowfacts 2017-07-04 15:01:46 -04:00
parent 943907909f
commit 9daeb4f3e8
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 0 additions and 9 deletions

View File

@ -55,15 +55,6 @@ open class TileEntityFluidHopper(inverted: Boolean, advanced: Boolean): TileEnti
val ioInventory = object: ItemStackHandler(2) {
override fun insertItem(slot: Int, stack: ItemStack, simulate: Boolean): ItemStack {
if (!stack.hasFluidHandler()) return stack
// val stackHandler = stack.getFluidHandler()
// when (slot) {
// 0 -> { // insert fluid
// if (stackHandler.drain(tank.fill(stackHandler.drain(tank.capacity - tank.fluidAmount, false), false), false) == null) return stack
// }
// 1 -> { // extract fluid
// if (tank.drain(stackHandler.fill(tank.drain(tank.fluidAmount, false), false), false) == null) return stack
// }
// }
return super.insertItem(slot, stack, simulate)
}
}