mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-02-25 15:11:20 +01:00
Revert "Add world list for custom block world regeneration"
This reverts commit 22e212d6ab
.
This commit is contained in:
parent
22e212d6ab
commit
3a59dfed6b
@ -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"));
|
||||
|
@ -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()) {
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user