refactor entity events. Allow multiple hosts have events on things
This commit is contained in:
1 parent
1c35f5b6a9
commit
afd7952a62
11 files changed
+190
-186
No files matched your search
@@ -3074,11 +3074,11 @@ public class CarpetExpression
|
||||
FunctionValue function = (FunctionValue)functionValue;
|
||||
|
||||
CarpetContext cc = (CarpetContext)c;
|
||||
List<LazyValue> args = new ArrayList<>();
|
||||
List<Value> args = new ArrayList<>();
|
||||
for (int i=2; i < lv.size(); i++)
|
||||
{
|
||||
Value arg = lv.get(i).evalValue(cc);
|
||||
args.add( (_c, _t) -> arg);
|
||||
args.add(arg);
|
||||
}
|
||||
if (function.getArguments().size() != args.size())
|
||||
throw new InternalExpressionException("Function "+function.getString()+" takes "+
|
||||
|
||||
Reference in new issue
Block a user