Skip to content

Commit

Permalink
Add LANTERNS tag (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
Intybyte authored Aug 19, 2024
1 parent dc05661 commit a3bef30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,10 @@ public static void registerTypeValidator(Predicate<CraftType> validator, String
registerProperty(new RequiredBlockProperty("flyblocks", FLY_BLOCKS, type -> new HashSet<>()));
registerProperty(new RequiredBlockProperty("detectionblocks", DETECTION_BLOCKS, type -> new HashSet<>()));
registerProperty(new MaterialSetProperty("directionDependentMaterials", DIRECTIONAL_DEPENDENT_MATERIALS, type -> {
var set = EnumSet.of(Material.LADDER, Material.LEVER, Material.GRINDSTONE, Material.LANTERN);
var set = EnumSet.of(Material.LADDER, Material.LEVER, Material.GRINDSTONE);
set.addAll(Tag.WALL_SIGNS.getValues());
set.addAll(Tags.WALL_TORCHES);
set.addAll(Tags.LANTERNS);
return set;
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class Tags {
public static final EnumSet<Material> FALL_THROUGH_BLOCKS = EnumSet.noneOf(Material.class);
public static final EnumSet<Material> BUCKETS = EnumSet.of(Material.LAVA_BUCKET, Material.WATER_BUCKET, Material.MILK_BUCKET, Material.COD_BUCKET, Material.PUFFERFISH_BUCKET, Material.SALMON_BUCKET, Material.TROPICAL_FISH_BUCKET);
public static final EnumSet<Material> WALL_TORCHES = EnumSet.of(Material.WALL_TORCH, Material.SOUL_WALL_TORCH, Material.REDSTONE_WALL_TORCH);
public static final EnumSet<Material> LANTERNS = EnumSet.of(Material.LANTERN, Material.SOUL_LANTERN);

static {
FRAGILE_MATERIALS.add(Material.PISTON_HEAD);
Expand Down

0 comments on commit a3bef30

Please sign in to comment.