Cardinal Components API

Cardinal Components API

21M Downloads

Should use `client.world` instead of `Objects.requireNonNull(client.player).world` for Immersive Portals compatibility

qouteall opened this issue ยท 0 comments

commented

The latest version of ImmPtl does not change the client player world when handing redirected packet. (Keeping the player dimension fixed will make mods able to see whether it's processing a redirected packet)
In https://github.com/OnyxStudios/Cardinal-Components-API/blob/c29d5bd7e0b472c99489157ca0ac26e09abcd055/cardinal-components-entity/src/main/java/dev/onyxstudios/cca/internal/entity/CcaEntityClientNw.java#L50
It uses the player's world which may be wrong when immptl is handling a redirected packet which may be wrong. It should use client.world directly