Add transposition blacklist to API (#790)
Blacklist the same blocks that are blacklisted from the Teleposer.
This commit is contained in:
parent
cc5f7b88c0
commit
513bb113e1
5 changed files with 67 additions and 3 deletions
|
@ -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(";");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue