Template blocks lose their properties
IvorAmlug opened this issue ยท 3 comments
Describe the bug
Well it seems like all my template blocks lose their properties after relogin into the world
d
This is how they look after rejoin or sometimes after reloading the chunk.
This is how they should look like.
But not only do they lose their textures they also lose all the properties of the Mimic Agument (how hard they are to break etc)
How to reproduce the bug
Use an Extruder Mk2 Module extend any type of block except of Iron bars or fences they dont seem to Properly work whit the Template blocks in General.
Relog into the world and there u go
Expected behavior
Well the Template blocks should keep their properties. After Relogin or Reloadin the chunk.
Additional details
Even tho the screenshots show shaders those are not required to reproduce
I removed Optifine Completly to check.
Forge version: 39.1.2
Modular Routers version: 1.18.1-9.0.2-85
Which Minecraft version are you using?
1.18
Crash log
No response
Oops, yeah. Somehow the NBT saving code for the block entity wasn't saving the camouflage. Will be fixed in next release.
This seems to happen again with Modular Routers 12.0.2 for 1.20.1 (Tested in Modpack ATM9 0.2.32) additionally it also spams the console with
[17:19:12] [Server thread/ERROR] [minecraft/LevelChunk]: A BlockEntity type me.desht.modularrouters.block.tile.TemplateFrameBlockEntity has thrown an exception trying to write state. It will not persist, Report this to the mod author
java.lang.NullPointerException: Cannot invoke "net.minecraft.world.level.block.state.BlockState.m_60734_()" because "p_129203_" is null
at net.minecraft.nbt.NbtUtils.m_129202_(NbtUtils.java:254) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at me.desht.modularrouters.block.tile.TemplateFrameBlockEntity.m_183515_(TemplateFrameBlockEntity.java:75) ~[modular-routers-12.0.2+mc1.20.1.jar%23734!/:12.0.2+mc1.20.1]
at net.minecraft.world.level.block.entity.BlockEntity.m_187482_(BlockEntity.java:77) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.world.level.block.entity.BlockEntity.m_187480_(BlockEntity.java:64) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.world.level.chunk.LevelChunk.m_8051_(LevelChunk.java:376) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.world.level.chunk.storage.ChunkSerializer.m_63454_(ChunkSerializer.java:324) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.server.level.ChunkMap.m_140258_(ChunkMap.java:829) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.server.level.ChunkMap.m_198874_(ChunkMap.java:796) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.server.level.ChunkMap.m_140353_(ChunkMap.java:490) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.server.level.ChunkMap.m_140280_(ChunkMap.java:454) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.server.level.ServerChunkCache.m_201698_(ServerChunkCache.java:316) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.server.level.ServerLevel.m_8793_(ServerLevel.java:305) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:893) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.server.dedicated.DedicatedServer.m_5703_(DedicatedServer.java:283) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:814) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:661) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:251) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]
Was using a extruder mk2 with a mimic augment and grass blocks, the modular router also had a camouflage upgrade as a grass block