Null check component rewriter

This commit is contained in:
Nassim Jahnke 2024-08-19 12:46:11 +02:00
parent 45c6cfedb0
commit ffc5584b1c
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F

View File

@ -235,8 +235,10 @@ public abstract class EntityRewriter<C extends ClientboundPacketType, T extends
rewriteParticle(event.user(), particle); rewriteParticle(event.user(), particle);
} }
} else if (type == componentType || type == optionalComponentType) { } else if (type == componentType || type == optionalComponentType) {
final Tag component = data.value(); if (protocol.getComponentRewriter() != null) {
protocol.getComponentRewriter().processTag(event.user(), component); final Tag component = data.value();
protocol.getComponentRewriter().processTag(event.user(), component);
}
} }
}); });
} }