fix: break door goal on non-hard difficulties

This commit is contained in:
Fireblade
2026-06-19 02:50:06 -04:00
parent 8a3ce40b46
commit 68d630676a
+2
View File
@@ -16,6 +16,8 @@ bool BreakDoorGoal::canUse()
{
if (!DoorInteractGoal::canUse()) return false;
if (!mob->level->getGameRules()->getBoolean(GameRules::RULE_MOBGRIEFING)) return false;
// difficulty check
if (mob->level->difficulty != Difficulty::HARD) return false;
return !doorTile->isOpen(mob->level, doorX, doorY, doorZ);
}