Cull Leaves 2.1.0 - MidnightConfig

Use MidnightConfig instead of AutoConfig/ClothConfig, decreasing file size substantually and increasing compatiblility
Also fix #6 :)
This commit is contained in:
Motschen
2021-03-01 20:17:22 +01:00
parent 2a2b97f41a
commit f19289ada5
9 changed files with 315 additions and 49 deletions

View File

@@ -1,6 +1,6 @@
package eu.midnightdust.cullleaves.mixin;
import eu.midnightdust.cullleaves.CullLeavesClient;
import eu.midnightdust.cullleaves.config.CullLeavesConfig;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.block.Block;
@@ -20,7 +20,7 @@ public class MixinLeavesBlock extends Block {
@Override
@SuppressWarnings("deprecation")
public boolean isSideInvisible(BlockState state, BlockState neighborState, Direction offset) {
if (CullLeavesClient.CL_CONFIG.enabled) {
if (CullLeavesConfig.enabled) {
return neighborState.getBlock() instanceof LeavesBlock;
}
else return false;