Revert "Add world list for custom block world regeneration"

This reverts commit 22e212d6ab.
This commit is contained in:
Blackdigits 2020-03-22 21:43:53 +07:00
parent 22e212d6ab
commit 3a59dfed6b
3 changed files with 0 additions and 8 deletions

View File

@ -39,7 +39,6 @@ public class ConfigManager {
// cached config options
public boolean abilityPlayerDamage, dodgeKnockbackEnabled, replaceMushroomDrops, worldGenEnabled;
public List<String> worldGenWhitelist;
public String healIndicatorFormat, damageIndicatorFormat, abilitySplitter;
public DecimalFormat healIndicatorDecimalFormat, damageIndicatorDecimalFormat;
@ -184,7 +183,6 @@ public class ConfigManager {
*/
replaceMushroomDrops = MMOItems.plugin.getConfig().getBoolean("custom-blocks.replace-mushroom-drops");
worldGenEnabled = MMOItems.plugin.getConfig().getBoolean("custom-blocks.enable-world-gen");
worldGenWhitelist = MMOItems.plugin.getConfig().getStringList("custom-blocks.gen-whitelist");
abilityPlayerDamage = MMOItems.plugin.getConfig().getBoolean("ability-player-damage");
healIndicatorFormat = ChatColor.translateAlternateColorCodes('&', MMOItems.plugin.getConfig().getString("game-indicators.heal.format"));
damageIndicatorFormat = ChatColor.translateAlternateColorCodes('&', MMOItems.plugin.getConfig().getString("game-indicators.damage.format"));

View File

@ -37,7 +37,6 @@ public class WorldGenManager implements Listener {
@EventHandler
public void a(ChunkLoadEvent event) {
if(!MMOItems.plugin.getLanguage().worldGenWhitelist.contains(event.getWorld().getName())) return;
if(!event.isNewChunk()) return;
for(int blocks : assigned.keySet()) {

View File

@ -105,11 +105,6 @@ custom-blocks:
# generate in the world according to
# their generation template.
enable-world-gen: false
#List of worlds that has custom block world regen enabled
gen-whitelist:
- world
- world_the_end
- world_resource
# Whether or not to remove mushroom block drops
# from the droplist when mining a mushroom block
# with silk-touch.