Fix boat entity type check

As per usual plugins sending data for untracked entities
Fixes #4222
This commit is contained in:
Nassim Jahnke 2024-10-30 16:47:34 +01:00
parent dde599c128
commit 74b9eb9f45
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F

View File

@ -502,7 +502,7 @@ public final class EntityPacketRewriter1_21_2 extends EntityRewriter<Clientbound
final EntityTracker1_21_2 tracker = tracker(connection);
final EntityType entityType = tracker.entityType(entityId);
if (entityType != null && !entityType.isOrHasParent(EntityTypes1_21_2.ABSTRACT_BOAT)) {
if (entityType == null || !entityType.isOrHasParent(EntityTypes1_21_2.ABSTRACT_BOAT)) {
return;
}