From 63ff24915ab631263000db34bf4af06627f6f940 Mon Sep 17 00:00:00 2001 From: Pieter12345 Date: Sat, 11 Jan 2025 04:28:44 +0100 Subject: [PATCH] Support byte_array -> byte[] in Construct.GetPOJO() --- src/main/java/com/laytonsmith/core/constructs/Construct.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/laytonsmith/core/constructs/Construct.java b/src/main/java/com/laytonsmith/core/constructs/Construct.java index f7a2d116a..b8a8a8610 100644 --- a/src/main/java/com/laytonsmith/core/constructs/Construct.java +++ b/src/main/java/com/laytonsmith/core/constructs/Construct.java @@ -419,6 +419,8 @@ public static Object GetPOJO(Mixed c) throws ClassCastException { return Long.valueOf(((CInt) c).getInt()); } else if(c instanceof CDouble) { return Double.valueOf(((CDouble) c).getDouble()); + } else if(c.isInstanceOf(CByteArray.TYPE)) { + return ((CByteArray) c).asByteArrayCopy(); } else if(c.isInstanceOf(CArray.TYPE)) { CArray ca = (CArray) c; if(ca.inAssociativeMode()) {