MalisisDoors

MalisisDoors

48M Downloads

Creating a custom door with a menril torch crashes the client

bluelightning32 opened this issue ยท 0 comments

commented

Modpack: DD&SS 5.5a
Malisis version:

       | LCHIJA | malisiscore               | 1.12.2-6.5.1-SNAPSHOT    | malisiscore-1.12.2-6.5.1.jar                       | None                                     |
       | LCHIJA | malisisdoors              | 1.12.2-7.3.0             | malisisdoors-1.12.2-7.3.0.jar                      | None                                     |

A player on my server created a malisis door using a menril torch.

image

Afterwards every time they opened their inventory, it crashed.

java.lang.NullPointerException
    at epicsquid.blockcraftery.block.EditableBlockColors.colorMultiplier(EditableBlockColors.java:16)
    at net.minecraft.client.renderer.color.BlockColors.colorMultiplier(BlockColors.java:185)
    at net.malisis.core.renderer.MalisisRenderer.colorMultiplier(MalisisRenderer.java:1414)
    at net.malisis.doors.renderer.CustomDoorRenderer.getColor(CustomDoorRenderer.java:193)
    at net.malisis.doors.renderer.CustomDoorRenderer.setupParams(CustomDoorRenderer.java:172)
    at net.malisis.doors.renderer.CustomDoorRenderer.setItem(CustomDoorRenderer.java:150)
    at net.malisis.doors.renderer.DoorRenderer.render(DoorRenderer.java:173)
    at net.malisis.core.renderer.MalisisRenderer.renderItem(MalisisRenderer.java:396)
    at net.malisis.core.registry.ClientRegistry.renderItem(ClientRegistry.java:289)
    at net.malisis.core.registry.Registries.renderItem(Registries.java:167)
    at net.minecraft.client.renderer.RenderItem.handler$onRenderModel$zzj000(RenderItem.java:1231)
    at net.minecraft.client.renderer.RenderItem.renderModel(RenderItem.java)
    at net.minecraft.client.renderer.RenderItem.renderModel(RenderItem.java:106)
    at net.minecraft.client.renderer.RenderItem.renderItem(RenderItem.java:149)
    at codechicken.lib.render.item.CCRenderItem.renderItem(CCRenderItem.java:213)
    at net.minecraft.client.renderer.entity.RenderEntityItem.doRender(RenderEntityItem.java:138)
    at vazkii.quark.client.render.RenderItemFlashing.doRender(RenderItemFlashing.java:27)
    at vazkii.quark.client.render.RenderItemFlashing.doRender(RenderItemFlashing.java:11)
    at codechicken.lib.render.item.entity.WrappedEntityItemRenderer.doRender(WrappedEntityItemRenderer.java:33)
    at codechicken.lib.render.item.entity.WrappedEntityItemRenderer.doRender(WrappedEntityItemRenderer.java:16)
    at morph.avaritia.client.render.entity.WrappedEntityItemRenderer.doRender(WrappedEntityItemRenderer.java:33)
    at morph.avaritia.client.render.entity.WrappedEntityItemRenderer.doRender(WrappedEntityItemRenderer.java:16)
    at net.minecraft.client.renderer.entity.RenderManager.renderEntity(RenderManager.java:384)
    at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:368)
    at net.minecraft.client.renderer.RenderGlobal.redirect$renderEntityStatic$zbp000(RenderGlobal.java:2637)
    at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:628)
    at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1347)
    at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1259)
    at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1062)
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1119)
    at net.minecraft.client.Minecraft.run(Minecraft.java:3942)
    at net.minecraft.client.main.Main.main(SourceFile:123)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:196)
    at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:231)
    at org.multimc.EntryPoint.listen(EntryPoint.java:143)
    at org.multimc.EntryPoint.main(EntryPoint.java:34)

I used NBTUtil to inspect the player.dat file and found this:

   | + 5 entries
   | | + Count: 1
   | | + Slot: 21
   | | + Damage: 0
   | | + id: malisisdoors:customdooritem
   | | + tag: 15 entries
   | |   + doubleDoor: 1
   | |   + proximityDetection: 0
   | |   + autoCloseTime: 0
   | |   + block: 1655
   | |   + bottomMaterialMetadata: 0
   | |   + frameMetadata: 0
   | |   + item: 6420
   | |   + openingTime: 10
   | |   + redstoneBehavior: 3
   | |   + topMaterialMetadata: 0
   | |   + bottomMaterial: dungeontactics:trap_fire
   | |   + frame: blockcraftery:editable_wall
   | |   + movement: rotating_door
   | |   + sound: carriage_door
   | |   + topMaterial: integrateddynamics:menril_torch