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,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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user