KubeJS (Old)

KubeJS (Old)

3M Downloads

Reloading textures while an atlas_texture painter object is on screen causes the game to crash.

ChiefArug opened this issue ยท 0 comments

commented

Minecraft Version

1.18.2

KubeJS Version

kubejs-thermal-1802.1.5-build.10

Rhino Version

1802.5.4-build.480

Architectury Version

4.4.68

Forge/Fabric Version

40.1.31

Describe your issue

Seems to be it trying to get the texture just after all the textures are cleared, which means the texture is null.

java.lang.NullPointerException: Cannot invoke "net.minecraft.client.renderer.texture.TextureAtlasSprite.m_118409_()" because "sprite" is null
	at dev.latvian.mods.kubejs.client.painter.screen.AtlasTextureObject.draw(AtlasTextureObject.java:48)

Crash report/logs

https://gist.github.com/ChiefArug/6a83ae5c64eb1e7d7363a5bf6e80dc4b