This commit is contained in:
gnembon committed 2020-07-22 17:15:26 -03:00
1 parent 49a88cb27f
commit 4fe6a8d80f
9 files changed
+18 -16

No files matched your search

@@ -68,8 +68,10 @@ public class ValueConversions
public static Value fromPath(ServerWorld world, Path path)
{
List<Value> nodes = new ArrayList<>();
for (PathNode node: path.getNodes())
//for (PathNode node: path.getNodes())
for (int i = 0, len = path.getLength(); i < len; i++)
{
PathNode node = path.getNode(i);
nodes.add( ListValue.of(
new BlockValue(null, world, node.getPos()),
new StringValue(node.type.name().toLowerCase(Locale.ROOT)),