Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
17183248569 committed Jul 8, 2024
1 parent d7e36ca commit c099aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/carpet/script/api/Auxiliary.java
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ else if (!interactable && targetBlock == null)
throw new InternalExpressionException("'encode_nbt' requires 1 or 2 parameters");
}
Value v = lv.get(0);
if(argSize > 1){
if(argSize > 1 && !(lv.get(1) instanceof BooleanValue)){
Tag res = null;
try {
res = switch (lv.get(1).getString().toLowerCase()) {
Expand Down

0 comments on commit c099aa9

Please sign in to comment.