mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-02-22 14:41:57 +01:00
Added forge mappings. (#1452)
This commit is contained in:
parent
0afcb893e3
commit
0c95eaa1c3
@ -513,6 +513,10 @@ public class InventoryPackets {
|
||||
return "wdl:request";
|
||||
case "bungeecord:main":
|
||||
return null;
|
||||
case "FML|MP":
|
||||
return "fml:mp";
|
||||
case "FML|HS":
|
||||
return "fml:hs";
|
||||
default:
|
||||
return old.matches("([0-9a-z_.-]+):([0-9a-z_/.-]+)") // Identifier regex
|
||||
? old : null;
|
||||
@ -750,6 +754,10 @@ public class InventoryPackets {
|
||||
return "WDL|CONTROL";
|
||||
case "wdl:request":
|
||||
return "WDL|REQUEST";
|
||||
case "fml:hs":
|
||||
return "FML|HS";
|
||||
case "fml:mp":
|
||||
return "FML:MP";
|
||||
default:
|
||||
return newId.length() > 20 ? newId.substring(0, 20) : newId;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user