Changed Tree Feller to not rely on external ArrayList

Given Bukkit's behavior of events, it would have never been possible for more than one player's data to occupy the shared arraylist... Still looked ugly, though.
Also helps toward concurrent events, should they ever come.
Also moved from a static boolean flag to a per-use flag
Also removed unused static variable "w"
This commit is contained in:
NuclearW
2012-02-19 00:54:56 -05:00
parent cca04468de
commit b08aead536
4 changed files with 22 additions and 30 deletions

View File

@ -33,7 +33,6 @@ public class Misc
public ArrayList<Entity> mobSpawnerList = new ArrayList<Entity>();
public HashSet<Block> blockWatchList = new HashSet<Block>();
public ArrayList<Block> treeFeller = new ArrayList<Block>();
public HashMap<Entity, Integer> arrowTracker = new HashMap<Entity, Integer>();
public ArrayList<LivingEntity> bleedTracker = new ArrayList<LivingEntity>();
public HashMap<Block, Integer> tntTracker = new HashMap<Block, Integer>();