Skip to content

Commit

Permalink
Apply common access wideners to forge dev env.
Browse files Browse the repository at this point in the history
This also fixes the ip issue.
  • Loading branch information
Yeregorix committed Dec 12, 2023
1 parent 2757ade commit 2ee5c62
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions forge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ sourceSets.configureEach {

extensions.configure(LoomGradleExtensionAPI::class) {
silentMojangMappingsLicense()
accessWidenerPath.set(file("../src/main/resources/common.accesswidener"))

mixin {
useLegacyMixinAp.set(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import org.spongepowered.api.Sponge;
import org.spongepowered.api.service.ban.Ban;
import org.spongepowered.api.service.ban.BanService;
import org.spongepowered.common.SpongeCommon;
import org.spongepowered.common.util.BanUtil;
import org.spongepowered.common.util.NetworkUtil;

Expand Down Expand Up @@ -64,10 +63,7 @@ protected boolean contains(final String entry) {
try {
return Sponge.server().serviceProvider().banService().find(InetAddress.getByName(entry)).join().isPresent();
} catch (final UnknownHostException e) {
// TODO SF 1.19.4
SpongeCommon.logger().info("Error parsing Ban IP address!", e);
return false;
// throw new IllegalArgumentException("Error parsing Ban IP address!", e);
throw new IllegalArgumentException("Error parsing Ban IP address!", e);
}
}

Expand Down
1 change: 0 additions & 1 deletion src/main/resources/common.accesswidener
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ extendable class net/minecraft/world/item/crafting/Ingredient
extendable method net/minecraft/world/item/crafting/Ingredient <init> (Ljava/util/stream/Stream;)V
accessible field net/minecraft/world/item/crafting/Ingredient values [Lnet/minecraft/world/item/crafting/Ingredient$Value;
accessible class net/minecraft/world/item/crafting/Ingredient$Value
accessible class net/minecraft/world/level/biome/MultiNoiseBiomeSource$NoiseParameters
accessible method net/minecraft/world/level/biome/Biome getTemperature (Lnet/minecraft/core/BlockPos;)F
accessible class net/minecraft/server/level/ServerLevel$EntityCallbacks
accessible class net/minecraft/network/protocol/game/ServerboundInteractPacket$Action
Expand Down

0 comments on commit 2ee5c62

Please sign in to comment.