spawn optimizations
This commit is contained in:
1 parent
021befbd3c
commit
0acb1077a2
1 file changed
+3
-1
@@ -2290,7 +2290,9 @@ public class CarpetExpression
|
|||||||
boolean hasTag = false;
|
boolean hasTag = false;
|
||||||
if (lv.size() > position.offset)
|
if (lv.size() > position.offset)
|
||||||
{
|
{
|
||||||
NBTSerializableValue v = NBTSerializableValue.parseString(lv.get(position.offset).evalValue(c).getString());
|
Value nbt = lv.get(position.offset).evalValue(c);
|
||||||
|
NBTSerializableValue v = (nbt instanceof NBTSerializableValue) ? (NBTSerializableValue) nbt
|
||||||
|
: NBTSerializableValue.parseString(nbt.getString());
|
||||||
if (v != null)
|
if (v != null)
|
||||||
{
|
{
|
||||||
hasTag = true;
|
hasTag = true;
|
||||||
|
|||||||
Reference in new issue
Block a user