Blocking mode for sub-networks

This commit is contained in:
PrototypeTrousers
2022-05-12 19:55:38 -03:00
parent 582d7f140c
commit 48146af137
3 changed files with 170 additions and 13 deletions
@@ -26,7 +26,7 @@ public class BlockingItemHandler extends BlockingInventoryAdaptor
Object2ObjectOpenHashMap<Item, IntSet> map = NonBlockingItems.INSTANCE.getMap().get( domain );
if( map.get( stack.getItem() ) != null )
{
return !map.get( stack.getItem() ).contains( stack.getItemDamage() );
return !map.get( stack.getItem() ).contains( stack.getMetadata() );
}
return true;
}