mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-27 11:38:03 +01:00
Intern block properties
This commit is contained in:
parent
7b328d3d4c
commit
78f37de368
@ -80,8 +80,8 @@ public class BlockUtils {
|
|||||||
if (equalIndex != -1) {
|
if (equalIndex != -1) {
|
||||||
final String key = property.substring(0, equalIndex).trim();
|
final String key = property.substring(0, equalIndex).trim();
|
||||||
final String value = property.substring(equalIndex + 1).trim();
|
final String value = property.substring(equalIndex + 1).trim();
|
||||||
entries[entryIndex++] = key;
|
entries[entryIndex++] = key.intern();
|
||||||
entries[entryIndex++] = value;
|
entries[entryIndex++] = value.intern();
|
||||||
}
|
}
|
||||||
start = end + 1;
|
start = end + 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user