Removes redundant approach.

https://github.com/BentoBoxWorld/BentoBox/issues/702
This commit is contained in:
tastybento 2019-05-26 22:18:03 -07:00
parent 94e90257fa
commit fb8e3887de

View File

@ -50,11 +50,6 @@ import java.util.stream.Collectors;
*/ */
public class BlueprintClipboard { public class BlueprintClipboard {
/**
* These are materials that should be treated as attachables even though they officially are not
*/
private static final List<Material> ATTACHABLES = Arrays.asList(Material.WATER, Material.LAVA,
Material.WHEAT, Material.POTATOES, Material.CARROTS, Material.BEETROOTS, Material.SUGAR_CANE);
private @Nullable Blueprint blueprint; private @Nullable Blueprint blueprint;
private @Nullable Location pos1; private @Nullable Location pos1;
private @Nullable Location pos2; private @Nullable Location pos2;
@ -245,8 +240,7 @@ public class BlueprintClipboard {
b.setSignLines(Arrays.asList(sign.getLines())); b.setSignLines(Arrays.asList(sign.getLines()));
} }
// Set block data // Set block data
if (blockState.getData() instanceof Attachable if (blockState.getData() instanceof Attachable) {
|| ATTACHABLES.contains(blockState.getType())) {
// Placeholder for attachment // Placeholder for attachment
bpBlocks.put(pos, new BlueprintBlock("minecraft:air")); bpBlocks.put(pos, new BlueprintBlock("minecraft:air"));
bpAttachable.put(pos, b); bpAttachable.put(pos, b);