mirror of
https://github.com/TeamMidnightDust/CullLeaves.git
synced 2025-12-17 22:55:10 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user