Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 16:12:42 +01:00
Fix boat entity type check
As per usual plugins sending data for untracked entities Fixes #4222
Dieser Commit ist enthalten in:
Ursprung
dde599c128
Commit
74b9eb9f45
@ -502,7 +502,7 @@ public final class EntityPacketRewriter1_21_2 extends EntityRewriter<Clientbound
|
|||||||
|
|
||||||
final EntityTracker1_21_2 tracker = tracker(connection);
|
final EntityTracker1_21_2 tracker = tracker(connection);
|
||||||
final EntityType entityType = tracker.entityType(entityId);
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren