Skip to content

Commit b7c42f9

Browse files
committed
Cancel mannequin data from unknown entities
1 parent 1a0c79c commit b7c42f9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_9to1_21_7/rewriter/EntityPacketRewriter1_21_9.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,10 @@ protected void registerRewrites() {
244244
return;
245245
}
246246
if (id == VersionedTypes.V1_21_9.entityDataTypes.mannequinProfileType.typeId()) {
247-
// Handled separately
248-
return;
247+
if (event.entityType() == null) {
248+
event.cancel();
249+
}
250+
return; // Handled separately
249251
}
250252
if (id > VersionedTypes.V1_21_9.entityDataTypes.armadilloState.typeId()) {
251253
id -= 2;

0 commit comments

Comments
 (0)