Add transposition blacklist to API (#790)

Blacklist the same blocks that are blacklisted from the Teleposer.
This commit is contained in:
Nicholas Ignoffo 2016-06-09 16:01:32 -07:00
parent cc5f7b88c0
commit 513bb113e1
5 changed files with 67 additions and 3 deletions

View file

@ -27,6 +27,15 @@ public class IMCHandler
}
}
if (message.key.equals("transpositionBlacklist") && message.isItemStackMessage())
{
ItemStack stack = message.getItemStackValue();
if (stack.getItem() instanceof ItemBlock) {
Block block = Block.getBlockFromItem(stack.getItem());
BloodMagicAPI.addToTranspositionBlacklist(block, stack.getItemDamage());
}
}
if (message.key.equals("sacrificeValue") && message.isStringMessage())
{
String[] splitInfo = message.getStringValue().split(";");