Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 16:12:42 +01:00
Merge pull request #1066 from creeper123123321/master
Tolerate some identifiers. Should fix #1063
Dieser Commit ist enthalten in:
Commit
b9750be745
@ -447,7 +447,7 @@ public class InventoryPackets {
|
|||||||
case "WDL|REQUEST":
|
case "WDL|REQUEST":
|
||||||
return "wdl:request";
|
return "wdl:request";
|
||||||
default:
|
default:
|
||||||
return old.matches("[0-9a-z_-]+:[0-9a-z_/.-]+") // Identifier regex
|
return old.matches("([0-9a-z_-]*:)?[0-9a-z_/.-]*") // Identifier regex
|
||||||
? old
|
? old
|
||||||
: "viaversion:legacy/" + BaseEncoding.base32().lowerCase().withPadChar('-').encode(
|
: "viaversion:legacy/" + BaseEncoding.base32().lowerCase().withPadChar('-').encode(
|
||||||
old.getBytes(StandardCharsets.UTF_8));
|
old.getBytes(StandardCharsets.UTF_8));
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren