mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-23 15:15:12 +01:00
Fixed Diurnal enchantment
This commit is contained in:
parent
445ad5bb18
commit
766c451a9c
@ -20,11 +20,12 @@ public class Diurnal extends EcoEnchant {
|
||||
@NotNull final LivingEntity victim,
|
||||
final int level,
|
||||
@NotNull final EntityDamageByEntityEvent event) {
|
||||
|
||||
if (!attacker.getWorld().getEnvironment().equals(World.Environment.NORMAL)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!(attacker.getWorld().getTime() < 12300 && attacker.getWorld().getTime() > 23850)) {
|
||||
if (!(attacker.getWorld().getTime() < 12000 && attacker.getWorld().getTime() > 0)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user