mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-20 19:04:44 -04:00
fix unlikely but still theoretically possible in a very weird edge case crash in BERR
This commit is contained in:
parent
51e3b27151
commit
4d3bd0d35f
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,10 @@ public class BlockEntityRendererRegistry {
|
|||
throw new RuntimeException("Tried to set renderers twice!");
|
||||
}
|
||||
|
||||
if (renderers == map) {
|
||||
return;
|
||||
}
|
||||
|
||||
renderers = map;
|
||||
for (BlockEntityRenderer renderer : renderersTmp.values()) {
|
||||
renderer.setRenderManager(BlockEntityRenderDispatcher.INSTANCE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue