mirror of
https://github.com/TeamMidnightDust/CullLeaves.git
synced 2025-12-18 07:05:09 +01:00
2.0.0 - Config and Smart Leaves resourcepack!
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package eu.midnightdust.cullleaves.mixin;
|
||||
|
||||
import eu.midnightdust.cullleaves.CullLeavesClient;
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
import net.minecraft.block.Block;
|
||||
@@ -19,6 +20,9 @@ public class MixinLeavesBlock extends Block {
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public boolean isSideInvisible(BlockState state, BlockState neighborState, Direction offset) {
|
||||
return neighborState.getBlock() instanceof LeavesBlock;
|
||||
if (CullLeavesClient.CL_CONFIG.enabled) {
|
||||
return neighborState.getBlock() instanceof LeavesBlock;
|
||||
}
|
||||
else return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user