mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-26 15:45: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,
|
@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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user