Feature: #0675 - Drag'n'Drop functionality when making patterns

Fixed a bug where pattern would not properly re-populate the pattern terminal when they were re-inserted.
Shift clicking into the inscriber is more intelligent.
This commit is contained in:
AlgorithmX2
2014-07-19 14:33:28 -05:00
parent e2288dafc7
commit 1747204928
7 changed files with 181 additions and 17 deletions
+14
View File
@@ -301,7 +301,11 @@ public abstract class AEBaseContainer extends Container
protected Slot addSlotToContainer(Slot newSlot)
{
if ( newSlot instanceof AppEngSlot )
{
AppEngSlot s = (AppEngSlot) newSlot;
s.myContainer = this;
return super.addSlotToContainer( newSlot );
}
else
throw new RuntimeException( "Invalid Slot for AE Container." );
}
@@ -1073,4 +1077,14 @@ public abstract class AEBaseContainer extends Container
}
public void onSlotChange(Slot s)
{
}
public boolean isValidForSlot(Slot s, ItemStack i)
{
return true;
}
}