Skip to content

Commit 6268c61

Browse files
committed
Merge remote-tracking branch 'origin/master-1.20-lts' into master-1.21-lts
2 parents 15f507a + 821dff7 commit 6268c61

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-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
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
@@ -71,7 +71,7 @@ public IValueTranslator getScriptValueTranslator(Value scriptValue) {
7171
public <V extends IValue> V translateFromGraal(Context context, Value value, IEvaluationExceptionFactory exceptionFactory, ValueDeseralizationContext valueDeseralizationContext) throws EvaluationException {
7272
IValueTranslator translator = getScriptValueTranslator(value);
7373
if (translator == null) {
74-
throw exceptionFactory.createError(Component.translatable("valuetype.integratedscripting.error.translation.unknown_from_graal", value));
74+
throw exceptionFactory.createError(Component.translatable("valuetype.integratedscripting.error.translation.unknown_from_graal", value.toString()));
7575
}
7676
return (V) translator.translateFromGraal(context, value, exceptionFactory, valueDeseralizationContext);
7777
}

0 commit comments

Comments
 (0)