mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-25 03:25:11 +01:00
Null check component rewriter
This commit is contained in:
parent
45c6cfedb0
commit
ffc5584b1c
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user