20w30a
This commit is contained in:
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)),
|
||||
|
||||
Reference in new issue
Block a user