mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-27 11:37:42 +01:00
commit
fc8d7e104d
@ -408,10 +408,8 @@ public class EventListen implements Listener {
|
||||
}
|
||||
|
||||
private Location roundLocation(Location input) {
|
||||
input.setX(input.getBlockX());
|
||||
input.setY(input.getBlockY());
|
||||
input.setZ(input.getBlockZ());
|
||||
return input;
|
||||
return new Location(input.getWorld(), Math.floor(input.getX()),
|
||||
Math.floor(input.getY()), Math.floor(input.getZ()));
|
||||
}
|
||||
|
||||
private boolean spawn(NPC npc) {
|
||||
|
@ -93,7 +93,7 @@ public class HumanController extends AbstractEntityController {
|
||||
NMS.sendPlayerlistPacket(false, null, npc);
|
||||
}
|
||||
}
|
||||
}, 60);
|
||||
}, 2);
|
||||
return handle.getBukkitEntity();
|
||||
}
|
||||
|
||||
|
@ -512,7 +512,7 @@ public class NMS {
|
||||
sendPlayerlistPacket(false, player, npc);
|
||||
}
|
||||
}
|
||||
}, 61);
|
||||
}, 2);
|
||||
}
|
||||
|
||||
public static org.bukkit.entity.Entity spawnCustomEntity(org.bukkit.World world, Location at,
|
||||
|
Loading…
Reference in New Issue
Block a user