mirror of
https://github.com/ViaVersion/ViaAprilFools.git
synced 2024-11-15 10:35:12 +01:00
Updated Via API usage
This commit is contained in:
parent
6fd36a822b
commit
660cdf3ab2
@ -23,8 +23,8 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly "com.viaversion:viaversion-common:4.9.1"
|
||||
compileOnly "com.viaversion:viabackwards-common:4.9.0"
|
||||
compileOnly "com.viaversion:viaversion-common:4.10.0-23w51b-SNAPSHOT"
|
||||
compileOnly "com.viaversion:viabackwards-common:4.10.0-23w51b-SNAPSHOT"
|
||||
compileOnly "org.yaml:snakeyaml:2.2"
|
||||
compileOnly "com.google.guava:guava:33.0.0-jre"
|
||||
compileOnly "io.netty:netty-handler:4.1.104.Final"
|
||||
|
@ -137,7 +137,7 @@ public class EntityPackets20w14infinite {
|
||||
for (int i = 0; i < size; i++) {
|
||||
// Attributes have been renamed and are now namespaced identifiers
|
||||
String key = wrapper.read(Type.STRING);
|
||||
String attributeIdentifier = Via.getManager().getProtocolManager().getProtocol(Protocol1_16To1_15_2.class).getMappingData().getAttributeMappings().get(key);
|
||||
String attributeIdentifier = Via.getManager().getProtocolManager().getProtocol(Protocol1_16To1_15_2.class).getMappingData().attributeIdentifierMappings().get(key);
|
||||
if (attributeIdentifier == null) {
|
||||
attributeIdentifier = "minecraft:" + key;
|
||||
if (!Key.isValid(attributeIdentifier)) {
|
||||
|
Loading…
Reference in New Issue
Block a user