[1.18.2] API unable to construct FakeClientLevel
christofferson opened this issue ยท 0 comments
When requesting the level with IJERAPI.getLevel()
the implementation attempts to construct a FakeClientLevel
instance if Minecraft.getInstance().level
is null. However, the constructor for FakeClientLevel
calls DimensionHelper.getType
which uses Minecraft.getInstance().level
without null checks, resulting in a NullPointerException
.