mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-23 19:37:53 +01:00
Remove unused check
This commit is contained in:
parent
68e545bddb
commit
aeb9781bd4
3 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,6 @@ import dev.engine_room.flywheel.impl.FlwImplXplat;
|
||||||
|
|
||||||
public enum CompatMods {
|
public enum CompatMods {
|
||||||
SODIUM("sodium"),
|
SODIUM("sodium"),
|
||||||
EMBEDDIUM("embeddium"),
|
|
||||||
IRIS("iris");
|
IRIS("iris");
|
||||||
|
|
||||||
private final BooleanSupplier isLoaded;
|
private final BooleanSupplier isLoaded;
|
||||||
|
|
|
@ -29,7 +29,7 @@ abstract class BlockEntityTypeMixin<T extends BlockEntity> implements BlockEntit
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void flywheel$setVisualizer(@Nullable BlockEntityVisualizer<? super T> visualizer) {
|
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) {
|
if (flywheel$visualizer == null && visualizer != null) {
|
||||||
flywheel$sodiumPredicate = SodiumCompat.forBlockEntityType((BlockEntityType<?>) (Object) this);
|
flywheel$sodiumPredicate = SodiumCompat.forBlockEntityType((BlockEntityType<?>) (Object) this);
|
||||||
} else if (flywheel$visualizer != null && visualizer == null && flywheel$sodiumPredicate != null) {
|
} else if (flywheel$visualizer != null && visualizer == null && flywheel$sodiumPredicate != null) {
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
"fabric-api": "${fabric_api_version_range}"
|
"fabric-api": "${fabric_api_version_range}"
|
||||||
},
|
},
|
||||||
"breaks": {
|
"breaks": {
|
||||||
"sodium": "<0.6.0-beta.2"
|
"sodium": "<0.6.0-beta.2",
|
||||||
|
"embeddium": "*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue