Added Basic Restrictions on slots in MAC.

This commit is contained in:
AlgorithmX2
2014-04-24 20:55:29 -05:00
parent eadd67a34c
commit f21bf3e9bc
6 changed files with 168 additions and 7 deletions
+2 -1
View File
@@ -58,7 +58,8 @@ public class SlotRestrictedInput extends AppEngSlot
{
if ( which == PlaceableItemType.VALID_ENCODED_PATTERN_W_OUPUT )
{
ICraftingPatternDetails ap = is.getItem() instanceof ICraftingPatternItem ? ((ICraftingPatternItem) is.getItem()).getPatternForItem( is ) : null;
ICraftingPatternDetails ap = is.getItem() instanceof ICraftingPatternItem ? ((ICraftingPatternItem) is.getItem()).getPatternForItem( is, theWorld )
: null;
if ( ap != null )
return true;
return false;