1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-25 10:57:57 +00:00

Update to latest Forge

This fixes the issue with DeferredRegister crashing on non-wrapped
registries.
This commit is contained in:
Jonathan Coates
2022-12-15 17:53:50 +00:00
parent 1276478deb
commit 2b237332ce
4 changed files with 18 additions and 46 deletions

View File

@@ -21,7 +21,7 @@ class TestHttpApi {
@JvmStatic
@BeforeAll
fun before() {
CoreConfig.httpRules = listOf(AddressRule.parse("*", null, Action.ALLOW.toPartial()))
CoreConfig.httpRules = listOf(AddressRule.parse("*", OptionalInt.empty(), Action.ALLOW.toPartial()))
}
@JvmStatic
@@ -29,8 +29,8 @@ class TestHttpApi {
fun after() {
CoreConfig.httpRules = Collections.unmodifiableList(
listOf(
AddressRule.parse("\$private", null, Action.DENY.toPartial()),
AddressRule.parse("*", null, Action.ALLOW.toPartial()),
AddressRule.parse("\$private", OptionalInt.empty(), Action.DENY.toPartial()),
AddressRule.parse("*", OptionalInt.empty(), Action.ALLOW.toPartial()),
),
)
}