Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-11-17 13:30:14 +01:00
Ignore untracked entity meta
Dieser Commit ist enthalten in:
Ursprung
6f2961a00b
Commit
fa707e5391
@ -64,10 +64,10 @@ public abstract class EntityRewriterBase<T extends BackwardsProtocol> extends En
|
||||
|
||||
@Override
|
||||
public void handleMetadata(int entityId, List<Metadata> metadataList, UserConnection connection) {
|
||||
super.handleMetadata(entityId, metadataList, connection);
|
||||
|
||||
EntityType type = tracker(connection).entityType(entityId);
|
||||
if (type == null) return;
|
||||
if (type == null) return; // Don't handle untracked entities - basically always the fault of a plugin sending virtual entities through concurrency-unsafe handling
|
||||
|
||||
super.handleMetadata(entityId, metadataList, connection);
|
||||
|
||||
EntityData entityData = entityDataForType(type);
|
||||
|
||||
|
@ -328,7 +328,6 @@ public class EntityPackets1_13 extends LegacyEntityRewriter<Protocol1_12_2To1_13
|
||||
typeId - 1
|
||||
));
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
// Rewrite Custom Name from Chat to String
|
||||
|
@ -370,7 +370,6 @@ public class EntityPackets1_14 extends LegacyEntityRewriter<Protocol1_13_2To1_14
|
||||
int blockstate = (Integer) meta.getValue();
|
||||
meta.setValue(protocol.getMappingData().getNewBlockStateId(blockstate));
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
filter().type(Entity1_14Types.PILLAGER).cancel(15);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren