Fix for duplication bug.

It was possible to get the item in a phantom slot with the new inventory
management features. This prevents for example the item double click
feature (make stack) to take items from the ghosted inventory.
This commit is contained in:
SandGrainOne 2013-06-11 23:00:08 +02:00
parent 8854353da3
commit a1340f864c

View file

@ -7,6 +7,7 @@
*/
package buildcraft.core.gui.slots;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
/**
@ -23,4 +24,10 @@ public class SlotPhantom extends SlotBase implements IPhantomSlot {
public boolean canAdjust() {
return true;
}
@Override
public boolean canTakeStack(EntityPlayer par1EntityPlayer)
{
return false;
}
}