Missed vibration chamber when fixing the others. (#3050)

This commit is contained in:
fscan 2017-08-19 21:31:16 +02:00 committed by yueh
parent d788da687e
commit a3a39201d1

View file

@ -19,12 +19,15 @@
package appeng.tile.misc; package appeng.tile.misc;
import javax.annotation.Nonnull;
import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBuf;
import net.minecraft.init.Items; import net.minecraft.init.Items;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntityFurnace; import net.minecraft.tileentity.TileEntityFurnace;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.items.IItemHandler; import net.minecraftforge.items.IItemHandler;
import appeng.api.config.Actionable; import appeng.api.config.Actionable;
@ -45,6 +48,7 @@ import appeng.tile.grid.AENetworkInvTile;
import appeng.tile.inventory.AppEngInternalInventory; import appeng.tile.inventory.AppEngInternalInventory;
import appeng.util.Platform; import appeng.util.Platform;
import appeng.util.inv.InvOperation; import appeng.util.inv.InvOperation;
import appeng.util.inv.WrapperFilteredItemHandler;
import appeng.util.inv.filter.IAEItemFilter; import appeng.util.inv.filter.IAEItemFilter;
@ -55,6 +59,7 @@ public class TileVibrationChamber extends AENetworkInvTile implements IGridTicka
private static final double DILATION_SCALING = 100.0; private static final double DILATION_SCALING = 100.0;
private static final int MIN_BURN_SPEED = 20; private static final int MIN_BURN_SPEED = 20;
private final AppEngInternalInventory inv = new AppEngInternalInventory( this, 1 ); private final AppEngInternalInventory inv = new AppEngInternalInventory( this, 1 );
private final IItemHandler invExt = new WrapperFilteredItemHandler( inv, new FuelSlotFilter() );
private int burnSpeed = 100; private int burnSpeed = 100;
private double burnTime = 0; private double burnTime = 0;
@ -65,7 +70,6 @@ public class TileVibrationChamber extends AENetworkInvTile implements IGridTicka
public TileVibrationChamber() public TileVibrationChamber()
{ {
this.inv.setFilter( new FuelSlotFilter() );
this.getProxy().setIdlePowerUsage( 0 ); this.getProxy().setIdlePowerUsage( 0 );
this.getProxy().setFlags(); this.getProxy().setFlags();
} }
@ -110,6 +114,12 @@ public class TileVibrationChamber extends AENetworkInvTile implements IGridTicka
this.setBurnSpeed( data.getInteger( "burnSpeed" ) ); this.setBurnSpeed( data.getInteger( "burnSpeed" ) );
} }
@Override
protected IItemHandler getItemHandlerForSide( @Nonnull EnumFacing facing )
{
return this.invExt;
}
@Override @Override
public IItemHandler getInternalInventory() public IItemHandler getInternalInventory()
{ {