Do not allow glass panes to be put into copycat panels

This commit is contained in:
PepperCode1 2024-09-01 15:36:28 -07:00
parent 849824189f
commit e6f969af15

View File

@ -2,6 +2,7 @@ package com.simibubi.create.content.decoration.copycat;
import com.simibubi.create.content.decoration.palettes.GlassPaneBlock;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.IronBarsBlock;
import net.minecraft.world.level.block.StainedGlassPaneBlock;
import net.minecraft.world.level.block.TrapDoorBlock;
@ -11,7 +12,7 @@ public class CopycatSpecialCases {
public static boolean isBarsMaterial(BlockState material) {
return material.getBlock() instanceof IronBarsBlock && !(material.getBlock() instanceof GlassPaneBlock)
&& !(material.getBlock() instanceof StainedGlassPaneBlock);
&& !(material.getBlock() instanceof StainedGlassPaneBlock) && material.getBlock() != Blocks.GLASS_PANE;
}
public static boolean isTrapdoorMaterial(BlockState material) {