mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-08-19 09:56:52 +00:00
There's a reason we test code. Thanks, hobbit!
This commit is contained in:
parent
0ab9f04ea4
commit
79401c3cf7
|
@ -554,11 +554,10 @@ public class User extends UserData implements Comparable<User>, IMessageRecipien
|
||||||
// This enables the no-god-in-worlds functionality where the actual player god mode state is never modified in disabled worlds,
|
// This enables the no-god-in-worlds functionality where the actual player god mode state is never modified in disabled worlds,
|
||||||
// but this method gets called every time the player takes damage. In the case that the world has god-mode disabled then this method
|
// but this method gets called every time the player takes damage. In the case that the world has god-mode disabled then this method
|
||||||
// will return false and the player will take damage, even though they are in god mode (isGodModeEnabledRaw()).
|
// will return false and the player will take damage, even though they are in god mode (isGodModeEnabledRaw()).
|
||||||
if (ess.getSettings().getNoGodWorlds().contains(this.getLocation().getWorld().getName())) {
|
if (!ess.getSettings().getNoGodWorlds().contains(this.getLocation().getWorld().getName())) {
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (isAfk()) {
|
if (isAfk()) {
|
||||||
// Protect AFK players by representing them in a god mode state to render them invulnerable to damage.
|
// Protect AFK players by representing them in a god mode state to render them invulnerable to damage.
|
||||||
if (ess.getSettings().getFreezeAfkPlayers()) {
|
if (ess.getSettings().getFreezeAfkPlayers()) {
|
||||||
|
|
Loading…
Reference in a new issue