eaglercraft-1.8/patches/minecraft/net/minecraft/util/StringUtils.edit.java

18 lines
425 B
Java

# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> INSERT 21 : 27 @ 21
+
+ private static final Pattern patternControlCodeAlternate = Pattern.compile("(?i)&([0-9A-FK-OR])");
+
+ public static String translateControlCodesAlternate(String parString1) {
+ return patternControlCodeAlternate.matcher(parString1).replaceAll("\u00A7$1");
+ }
> EOF