[BUG] 光亮足够依然刷怪问题
Lounode opened this issue · 3 comments
问题来源 \scripts\gamestages\mobs.zs
让我们看到下面这段函数:
/*
* This script is created for the GreedyCraft modpack by TCreopargh.
* You may NOT use this script in any other publicly distributed modpack without my permission.
*/
#priority 1000
import mods.MobStages;
import scripts.util.gamestages as GameStagesUtil;
val mobStages as string[string] = {
"enderiozoo:concussioncreeper": "hardmode",
"enderiozoo:direslime": "hardmode",
"enderiozoo:direwolf": "hardmode",
"enderiozoo:enderminy": "hardmode",
"enderiozoo:epicsquid": "hardmode",
"enderiozoo:fallenknight": "hardmode",
"enderiozoo:fallenmount": "hardmode",
"enderiozoo:lovechild": "hardmode",
"enderiozoo:withercat": "hardmode",
"enderiozoo:witherwitch": "hardmode",
"touhou_little_maid:entity.monster.fairy": "nether",
"touhou_little_maid:entity.monster.rinnosuke": "nether",
"minecraft:blaze": "twilight_shield",
"minecraft:wither_skeleton": "twilight_shield",
"thaumcraft:eldritchguardian": "novice_wizard",
"thaumcraft:cultistportallesser": "novice_wizard",
"mowziesmobs:barako": "wyvern",
"mowziesmobs:frostmaw": "hardmode",
"minecraft:wither": "abyssal_conquerer"
} as string[string];
val mobReplacements as string[string] = {
"enderiozoo:withercat": "minecraft:ocelot",
"enderiozoo:witherwitch": "minecraft:witch",
"enderiozoo:lovechild": "minecraft:zombie",
"enderiozoo:fallenknight": "minecraft:skeleton",
"enderiozoo:fallenmount": "minecraft:zombie_horse",
"enderiozoo:epicsquid": "minecraft:squid",
"enderiozoo:enderminy": "minecraft:enderman",
"enderiozoo:direwolf": "minecraft:wolf",
"enderiozoo:concussioncreeper": "minecraft:creeper"
} as string[string];
for mob in mobStages {
var stage as string = mobStages[mob] as string;
MobStages.addStage(stage, mob);
}
for mob in mobReplacements {
var replacement as string = mobReplacements[mob] as string;
MobStages.toggleSpawner(mob, true);
MobStages.addReplacement(mob, replacement);
}
在这里将末影动物园生成的怪物替换成原版生物时没有任何检查,而且原mobstage的替换意思是无法生成就替换成这种生物。
简单来说:一个失败的生成尝试却被替换成了一个原版生物的刷新。