Fixed bug where watcher wasn't constructed until someone sees you
This commit is contained in:
		@@ -21,6 +21,7 @@ public class DisguiseAPI {
 | 
			
		||||
     */
 | 
			
		||||
    public static void disguiseToAll(Player p, Disguise disguise) {
 | 
			
		||||
        disguises.put(p.getName(), disguise);
 | 
			
		||||
        disguise.constructPacket(p);
 | 
			
		||||
        for (Player player : Bukkit.getOnlinePlayers()) {
 | 
			
		||||
            if (p.getWorld() != player.getWorld())
 | 
			
		||||
                continue;
 | 
			
		||||
 
 | 
			
		||||
@@ -60,10 +60,6 @@ public class Disguise {
 | 
			
		||||
        return spawnPacket;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public Entity getEntity() {
 | 
			
		||||
        return entity;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public Entity getEntity(World world, Location loc, int entityId) {
 | 
			
		||||
        if (entity != null) {
 | 
			
		||||
            entity.setLocation(loc.getX(), loc.getY(), loc.getZ(), loc.getYaw(), loc.getPitch());
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user