mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-23 03:17: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 {
|
||||
SODIUM("sodium"),
|
||||
EMBEDDIUM("embeddium"),
|
||||
IRIS("iris");
|
||||
|
||||
private final BooleanSupplier isLoaded;
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
"fabric-api": "${fabric_api_version_range}"
|
||||
},
|
||||
"breaks": {
|
||||
"sodium": "<0.6.0-beta.2"
|
||||
"sodium": "<0.6.0-beta.2",
|
||||
"embeddium": "*"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue