Remove unused check

This commit is contained in:
IThundxr 2024-10-12 17:28:24 -04:00
parent 68e545bddb
commit aeb9781bd4
Failed to generate hash of commit
3 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,6 @@ import dev.engine_room.flywheel.impl.FlwImplXplat;
public enum CompatMods {
SODIUM("sodium"),
EMBEDDIUM("embeddium"),
IRIS("iris");
private final BooleanSupplier isLoaded;

View file

@ -29,7 +29,7 @@ abstract class BlockEntityTypeMixin<T extends BlockEntity> implements BlockEntit
@Override
public void flywheel$setVisualizer(@Nullable BlockEntityVisualizer<? super T> visualizer) {
if (CompatMods.SODIUM.isLoaded() && !CompatMods.EMBEDDIUM.isLoaded()) {
if (CompatMods.SODIUM.isLoaded()) {
if (flywheel$visualizer == null && visualizer != null) {
flywheel$sodiumPredicate = SodiumCompat.forBlockEntityType((BlockEntityType<?>) (Object) this);
} else if (flywheel$visualizer != null && visualizer == null && flywheel$sodiumPredicate != null) {

View file

@ -31,6 +31,7 @@
"fabric-api": "${fabric_api_version_range}"
},
"breaks": {
"sodium": "<0.6.0-beta.2"
"sodium": "<0.6.0-beta.2",
"embeddium": "*"
}
}