Fixed /god for the new hMod versions.

This commit is contained in:
sk89q 2010-11-30 02:27:13 -08:00
parent a456d67528
commit aa2bffbd00

View File

@ -1005,6 +1005,10 @@ public boolean onDamage(PluginLoader.DamageType type, BaseEntity attacker,
if (defender.isPlayer()) {
Player player = defender.getPlayer();
if (invinciblePlayers.contains(player.getName())) {
return true;
}
if (disableFallDamage && type == PluginLoader.DamageType.FALL) {
return true;