From 78f37de36883318a637de5faba1ed31c5c3b25bd Mon Sep 17 00:00:00 2001 From: themode Date: Tue, 28 Dec 2021 12:03:33 +0100 Subject: [PATCH] Intern block properties --- src/main/java/net/minestom/server/utils/block/BlockUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minestom/server/utils/block/BlockUtils.java b/src/main/java/net/minestom/server/utils/block/BlockUtils.java index 0ca6e7049..eae278277 100644 --- a/src/main/java/net/minestom/server/utils/block/BlockUtils.java +++ b/src/main/java/net/minestom/server/utils/block/BlockUtils.java @@ -80,8 +80,8 @@ public class BlockUtils { if (equalIndex != -1) { final String key = property.substring(0, equalIndex).trim(); final String value = property.substring(equalIndex + 1).trim(); - entries[entryIndex++] = key; - entries[entryIndex++] = value; + entries[entryIndex++] = key.intern(); + entries[entryIndex++] = value.intern(); } start = end + 1; }