Skip to content

Commit

Permalink
Don't disable JMX mesh models when CBT is loaded. Closes #71
Browse files Browse the repository at this point in the history
  • Loading branch information
grondag committed Aug 23, 2020
1 parent faa2a4d commit 99e8e9d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/grondag/canvas/CanvasJmxInit.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
package grondag.canvas;

import net.fabricmc.loader.api.FabricLoader;

import grondag.jmx.api.JmxInitializer;

public class CanvasJmxInit implements JmxInitializer {
@Override
public void onInitalizeJmx() {
grondag.jmx.Configurator.loadVanillaModels = (Configurator.forceJmxModelLoading || grondag.jmx.Configurator.loadVanillaModels)
// CBT refuses to transform non-vanilla models
&& !FabricLoader.getInstance().isModLoaded("connected_block_textures");
grondag.jmx.Configurator.loadVanillaModels = Configurator.forceJmxModelLoading || grondag.jmx.Configurator.loadVanillaModels;
}
}

0 comments on commit 99e8e9d

Please sign in to comment.