Skip to content

Commit cb24aa9

Browse files
Apply suggestions from code review
Co-authored-by: Patrick Miller <apickledwalrus@icloud.com> Co-authored-by: SirSmurfy2 <82696841+Absolutionism@users.noreply.github.com>
1 parent 6152522 commit cb24aa9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/ch/njol/skript/expressions/ExprDustedStage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public void change(Event event, Object @Nullable [] delta, ChangeMode mode) {
9595
case REMOVE -> Math2.addClamped(currentValue, -value);
9696
default -> throw new IllegalArgumentException("Change mode " + mode + " is not valid for ExprDustedStage!");
9797
};
98-
brushable.setDusted( Math.clamp(newValue, 0, maxValue));
98+
brushable.setDusted(Math.clamp(newValue, 0, maxValue));
9999
if (obj instanceof Block block) {
100100
block.setBlockData(brushable);
101101
}

src/test/skript/tests/syntaxes/expressions/ExprDustedStage.sk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
test "dusting progress" when running minecraft "1.20":
1+
test "dusting progress":
22
set {_old} to block data of test-block
33
set block at test-block to suspicious gravel
44
set {_block} to block at test-block

0 commit comments

Comments
 (0)