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);
}
} else if (type == componentType || type == optionalComponentType) {
final Tag component = data.value();
protocol.getComponentRewriter().processTag(event.user(), component);
if (protocol.getComponentRewriter() != null) {
final Tag component = data.value();
protocol.getComponentRewriter().processTag(event.user(), component);
}
}
});
}