Skip to content

Commit e7939d3

Browse files
committed
Merge remote-tracking branch 'origin/master-1.19-lts' into master-1.20-lts
2 parents f23f9a5 + f020909 commit e7939d3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
As always, don't forget to backup your world before updating!
2+
Requires CyclopsCore version 1.19.0 or higher.
3+
4+
Fixes:
5+
* Fix display panel crash when translation undefined values, Closes #27

src/main/java/org/cyclops/integratedscripting/evaluate/translation/ValueTranslatorRegistry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public IValueTranslator getScriptValueTranslator(Value scriptValue) {
7070
public <V extends IValue> V translateFromGraal(Context context, Value value, IEvaluationExceptionFactory exceptionFactory) throws EvaluationException {
7171
IValueTranslator translator = getScriptValueTranslator(value);
7272
if (translator == null) {
73-
throw exceptionFactory.createError(Component.translatable("valuetype.integratedscripting.error.translation.unknown_from_graal", value));
73+
throw exceptionFactory.createError(Component.translatable("valuetype.integratedscripting.error.translation.unknown_from_graal", value.toString()));
7474
}
7575
return (V) translator.translateFromGraal(context, value, exceptionFactory);
7676
}

0 commit comments

Comments
 (0)