From a8bae66b2a99e14015ed15c5883e8dac1501be01 Mon Sep 17 00:00:00 2001 From: gnembon Date: Sun, 14 Mar 2021 01:57:45 -0400 Subject: [PATCH] allow to modify built-in temporary variables, otherwise its tough to reduce to a list. Let's see what happens. --- src/main/java/carpet/script/value/Value.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/carpet/script/value/Value.java b/src/main/java/carpet/script/value/Value.java index 573ed02c..389ede83 100644 --- a/src/main/java/carpet/script/value/Value.java +++ b/src/main/java/carpet/script/value/Value.java @@ -141,12 +141,12 @@ public abstract class Value implements Comparable, Cloneable public void assertAssignable() { - if (boundVariable == null || boundVariable.startsWith("_")) + if (boundVariable == null)// || boundVariable.startsWith("_")) { - if (boundVariable != null) + /*if (boundVariable != null) { throw new InternalExpressionException(boundVariable+ " cannot be assigned a new value"); - } + }*/ throw new InternalExpressionException(getString()+ " is not a variable"); }