1
0
mirror of https://e.coding.net/circlecloud/TeleportRandom.git synced 2024-11-01 07:38:47 +00:00

feat: 修复上个版本的空指针错误

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-07-19 09:31:36 +08:00
parent 97f0800fea
commit 6e28bf73a4

View File

@ -129,6 +129,7 @@ public class TeleportRandom extends JavaPlugin implements CommandExecutor {
public Point(final int limit, final World world) {
this.limit = limit;
this.world = world;
x = rr.nextInt(limit);
z = rr.nextInt(limit);
final int xf = rr.nextInt(x);