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:
parent
8854353da3
commit
a1340f864c
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue