Skip to content

Commit b33221b

Browse files
committed
Don't throw on bad entity data in 1.14->1.13
1 parent 8ce26b1 commit b33221b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/com/viaversion/viabackwards/protocol/v1_14to1_13_2/rewriter/EntityPacketRewriter1_14.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ protected void registerRewrites() {
487487

488488
filter().handler((event, data) -> {
489489
if (data.dataType().typeId() > 15) {
490-
throw new IllegalArgumentException("Unhandled entity data: " + data);
490+
event.cancel(); // Cancel bad data (generally from plugins sending data for despawned entities)
491491
}
492492
});
493493
}

0 commit comments

Comments
 (0)