Fixed Diurnal enchantment

This commit is contained in:
_OfTeN_ 2021-10-11 14:55:34 +03:00
parent 445ad5bb18
commit 766c451a9c

View File

@ -20,11 +20,12 @@ public class Diurnal extends EcoEnchant {
@NotNull final LivingEntity victim, @NotNull final LivingEntity victim,
final int level, final int level,
@NotNull final EntityDamageByEntityEvent event) { @NotNull final EntityDamageByEntityEvent event) {
if (!attacker.getWorld().getEnvironment().equals(World.Environment.NORMAL)) { if (!attacker.getWorld().getEnvironment().equals(World.Environment.NORMAL)) {
return; return;
} }
if (!(attacker.getWorld().getTime() < 12300 && attacker.getWorld().getTime() > 23850)) { if (!(attacker.getWorld().getTime() < 12000 && attacker.getWorld().getTime() > 0)) {
return; return;
} }