Skip to content

Commit

Permalink
Attempt to blind fix #193.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnuecke committed Sep 16, 2023
1 parent 8fe6e84 commit 72b79aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public static void initialize() {
}

private static <T extends AbstractMessage> void registerMessage(final Class<T> type, final Function<FriendlyByteBuf, T> decoder, final NetworkManager.Side side) {
final ResourceLocation id = new ResourceLocation(API.MOD_ID, type.getSimpleName().replaceAll("Message$", "").toLowerCase());
final ResourceLocation id = new ResourceLocation(API.MOD_ID, type.getSimpleName().replaceAll("Message$", "").toLowerCase(Locale.US));
MESSAGE_IDS.put(type, id);
if (side != NetworkManager.serverToClient() || Platform.getEnv() == EnvType.CLIENT) {
NetworkManager.registerReceiver(side, id, (buffer, context) -> {
Expand Down

0 comments on commit 72b79aa

Please sign in to comment.