Skip to content

Commit 569df84

Browse files
committed
Merge branch 'feature/expose-aliases' of https://github.com/sovdeeth/Skript into feature/expose-aliases
2 parents 15ca3d6 + d08b20e commit 569df84

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/ch/njol/skript/bukkitutil/ItemUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public static Material getTreeSapling(TreeType treeType) {
227227
}
228228

229229

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

232232
/**
233233
* Whether the block is a fence or a wall.

src/main/java/ch/njol/skript/bukkitutil/block/NewBlockCompat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public void setBlock(Block block, Material type, @Nullable BlockValues values, i
185185
placed = true;
186186
}
187187
}
188-
} else if (Material.WALL_TORCH == type) {
188+
} else if (type == Material.WALL_TORCH) {
189189
Directional data;
190190
if (ourValues != null)
191191
data = (Directional) ourValues.data;

src/main/java/ch/njol/skript/entity/BoatData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public boolean isOfItemType(ItemType i){
117117
Material type = stack.getType();
118118
if (Material.OAK_BOAT == type)
119119
ordinal = 0;
120-
else if (Material.SPRUCE_BOAT == type)
120+
else if (type == Material.SPRUCE_BOAT)
121121
ordinal = TreeSpecies.REDWOOD.ordinal();
122122
else if (Material.BIRCH_BOAT == type)
123123
ordinal = TreeSpecies.BIRCH.ordinal();

0 commit comments

Comments
 (0)