OtherDrops

226k Downloads

Refactor - store drops & dropgroups in a hashmap

Zarius opened this issue ยท 1 comments

commented

By storing these in a hashmap keyed with the integer typeId of each block (or special negative numbers, eg. for leaf decay) we can simply get a list of drops relevant to the block being broken and loop through just those rather than the whole configuration file's list of drops.

With a large config file this can mean the different between hundreds of loops of OB_Drop.compareTo() and just a few.

commented

Done in version 1.0