mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-26 03:55:28 +01:00
Drop MetadataPacket where metadata could not be rewritten
This commit is contained in:
parent
114a7b6bd6
commit
79e5555d42
@ -516,7 +516,7 @@ public class OutgoingTransformer {
|
|||||||
return line;
|
return line;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void transformMetadata(int entityID, Object dw, ByteBuf output) {
|
private void transformMetadata(int entityID, Object dw, ByteBuf output) throws CancelException {
|
||||||
// get entity
|
// get entity
|
||||||
try {
|
try {
|
||||||
transformMetadata(entityID, (List) ReflectionUtil.invoke(dw, "b"), output);
|
transformMetadata(entityID, (List) ReflectionUtil.invoke(dw, "b"), output);
|
||||||
@ -529,11 +529,11 @@ public class OutgoingTransformer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void transformMetadata(int entityID, List dw, ByteBuf output) {
|
private void transformMetadata(int entityID, List dw, ByteBuf output) throws CancelException {
|
||||||
EntityType type = clientEntityTypes.get(entityID);
|
EntityType type = clientEntityTypes.get(entityID);
|
||||||
if (type == null) {
|
if (type == null) {
|
||||||
System.out.println("Unable to get entity for ID: " + entityID);
|
System.out.println("Unable to get entity for ID: " + entityID);
|
||||||
return;
|
throw new CancelException();
|
||||||
}
|
}
|
||||||
if (dw != null) {
|
if (dw != null) {
|
||||||
short id = -1;
|
short id = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user