Only clear slots on right side!

This commit is contained in:
Ellpeck 2016-06-07 23:18:30 +02:00
parent 9a9ec02eef
commit 470e7b5518

View file

@ -233,7 +233,7 @@ public class TileEntityLaserRelayItemWhitelist extends TileEntityLaserRelayItem
int slotStart = output ? 12 : 0;
int slotStop = slotStart+12;
for(int i = 0; i < this.slots.length; i++){
for(int i = slotStart; i < slotStop; i++){
if(this.slots[i] != null){
if(this.slots[i].getItem() instanceof ItemFilter){
ItemDrill.writeSlotsToNBT(new ItemStack[ContainerFilter.SLOT_AMOUNT], this.slots[i]);