public static void update(){
		for(BLWorld blworld:blworlds){
			if(blworld.world!=null){
				long time=blworld.world.getTime();
				long timenight=12000;
				
				int tick=0;
				
				if(time>timenight){
					if(!blworld.lampsoff.isEmpty()){
						for(Lamp lamp:blworld.lampsoff){
							tick++;
							lamp.update(false);
							if(tick>100) break;
						}
					}
				}else{
					if(!blworld.lampson.isEmpty()){
						for(Lamp lamp:blworld.lampson){
							tick++;
							lamp.update(true);
							if(tick>100) break;
						}
					}
				}
			}
		}
	}