Skip to content

Commit

Permalink
Merge branch 'feature/expose-aliases' of https://github.com/sovdeeth/…
Browse files Browse the repository at this point in the history
…Skript into feature/expose-aliases
  • Loading branch information
sovdeeth committed Jun 30, 2024
2 parents 15ca3d6 + d08b20e commit 569df84
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/bukkitutil/ItemUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public static Material getTreeSapling(TreeType treeType) {
}


private static final boolean HAS_FENCE_TAGS = !Skript.isRunningMinecraft(1,14);
private static final boolean HAS_FENCE_TAGS = !Skript.isRunningMinecraft(1, 14);

/**
* Whether the block is a fence or a wall.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public void setBlock(Block block, Material type, @Nullable BlockValues values, i
placed = true;
}
}
} else if (Material.WALL_TORCH == type) {
} else if (type == Material.WALL_TORCH) {
Directional data;
if (ourValues != null)
data = (Directional) ourValues.data;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/entity/BoatData.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public boolean isOfItemType(ItemType i){
Material type = stack.getType();
if (Material.OAK_BOAT == type)
ordinal = 0;
else if (Material.SPRUCE_BOAT == type)
else if (type == Material.SPRUCE_BOAT)
ordinal = TreeSpecies.REDWOOD.ordinal();
else if (Material.BIRCH_BOAT == type)
ordinal = TreeSpecies.BIRCH.ordinal();
Expand Down

0 comments on commit 569df84

Please sign in to comment.