don't override fastsent when it is already true

This commit is contained in:
SydMontague 2014-04-22 19:03:55 +02:00
parent 507d6cad23
commit d823720b1c

View File

@ -29,6 +29,7 @@ import org.bukkit.map.MapView;
import org.bukkit.plugin.java.JavaPlugin;
import org.mcstats.Metrics;
// TODO change whole images to fastsend/slowsend
public class ImageMaps extends JavaPlugin implements Listener
{
private Map<String, PlacingCacheEntry> placing = new HashMap<String, PlacingCacheEntry>();
@ -164,7 +165,7 @@ public class ImageMaps extends JavaPlugin implements Listener
if (cache.isFastSend() && !sendList.contains(item.getDurability()))
sendList.add(item.getDurability());
maps.put(item.getDurability(), new ImageMap(cache.getImage(), x, y, cache.isFastSend()));
maps.put(item.getDurability(), new ImageMap(cache.getImage(), x, y, sendList.contains(item.getDurability())));
}
@SuppressWarnings("deprecation")