fix switch statement

This commit is contained in:
Gustavo
2026-03-21 16:41:00 +11:00
parent 35bf5843b0
commit 68e0cdd688

View File

@@ -128,11 +128,26 @@ EntityEvents.spawned((event) => {
if (type === "minecraft:enderman") {
switch (dimension) {
// use default for beneath
case "ad_astra:moon": newHP = 45;
case "ad_astra:mars": newHP = 65;
case "ad_astra:venus": newHP = 75;
case "ad_astra:mercury": newHP = 75;
case "ad_astra:glacio": newHP = 85;
case "ad_astra:moon": {
newHP = 45;
break;
}
case "ad_astra:mars": {
newHP = 65;
break;
}
case "ad_astra:venus": {
newHP = 75;
break;
}
case "ad_astra:mercury": {
newHP = 75;
break;
}
case "ad_astra:glacio": {
newHP = 85;
break;
}
}
}
else if (type === "endermanoverhaul:nether_wastes_enderman") {