mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-10 12:33:57 +01:00
Do not allow glass panes to be put into copycat panels
This commit is contained in:
parent
849824189f
commit
e6f969af15
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user