mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-28 21:15:51 +01:00
Null check component rewriter
This commit is contained in:
parent
45c6cfedb0
commit
ffc5584b1c
@ -235,9 +235,11 @@ 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) {
|
||||||
|
if (protocol.getComponentRewriter() != null) {
|
||||||
final Tag component = data.value();
|
final Tag component = data.value();
|
||||||
protocol.getComponentRewriter().processTag(event.user(), component);
|
protocol.getComponentRewriter().processTag(event.user(), component);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user