|
@@ -473,8 +473,8 @@ public class MinecraftFunctions
|
|
|
sm.registerFunction("players.toworldlist", (sc, in) -> new ArrayList(((World) in[0].get(sc)).playerEntities));
|
|
|
sm.registerFunction("players.near", (sc, in) ->
|
|
|
{
|
|
|
- Location l = (Location) in[1].get(sc);
|
|
|
- return Utils.getPlayers(l.getWorld(), l.getX(), l.getY(), l.getZ(), in[2].getDouble(sc));
|
|
|
+ Location l = (Location) in[0].get(sc);
|
|
|
+ return Utils.getPlayers(l.getWorld(), l.getX(), l.getY(), l.getZ(), in[1].getDouble(sc));
|
|
|
});
|
|
|
|
|
|
// ---------------------------------------------------------------------
|