Yarn: MobEntity#isInDaylight is misleading

Created on 27 Jul 2019  路  2Comments  路  Source: FabricMC/yarn

While it does check that the mob is exposed to the sun, it has a (high) random chance of returning false. Currently, the method is specifically used by undead mobs to start burning / damage their helmet, which should probably be emphasized.

discussion refactor

Most helpful comment

whetherOrNotIShouldCatchFireDueToDaylightInThisSpecificTickOfAllPossibleOnes

jokes aside, i'd prefer "catch fire" over "burn" in this context, even if it's longer, so shouldCatchFireDueToDaylight

All 2 comments

shouldBurnDueToDaylight

whetherOrNotIShouldCatchFireDueToDaylightInThisSpecificTickOfAllPossibleOnes

jokes aside, i'd prefer "catch fire" over "burn" in this context, even if it's longer, so shouldCatchFireDueToDaylight

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Bixilon picture Bixilon  路  5Comments

liach picture liach  路  4Comments

ChloeDawn picture ChloeDawn  路  6Comments

quat1024 picture quat1024  路  6Comments

Draylar picture Draylar  路  6Comments