1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-22 17:37:38 +00:00

Add EMI compatibility

This just adds stack comparisons, so that upgrades are considered (much
like JEI and REI). No dynamic recipes, as EMI doesn't support those :(.
This commit is contained in:
Jonathan Coates
2023-07-10 20:31:06 +01:00
parent ec0765ead1
commit c2988366d8
11 changed files with 76 additions and 5 deletions

View File

@@ -119,8 +119,7 @@ interface AddressPredicate {
@Override
public boolean matches(InetAddress socketAddress) {
return
socketAddress.isAnyLocalAddress() // 0.0.0.0, ::0
return socketAddress.isAnyLocalAddress() // 0.0.0.0, ::0
|| socketAddress.isLoopbackAddress() // 127.0.0.0/8, ::1
|| socketAddress.isLinkLocalAddress() // 169.254.0.0/16, fe80::/10
|| socketAddress.isSiteLocalAddress() // 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, fec0::/10