mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Merge branch '1.20.4' into 1.21
This commit is contained in:
commit
6a7f26119a
1 changed files with 3 additions and 7 deletions
|
@ -6,7 +6,6 @@ import net.minecraft.client.MinecraftClient;
|
|||
import net.minecraft.entity.LivingEntity;
|
||||
import net.minecraft.entity.effect.StatusEffectInstance;
|
||||
import net.minecraft.entity.effect.StatusEffects;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
|
||||
public class BatEyesApplicator {
|
||||
|
||||
|
@ -23,13 +22,10 @@ public class BatEyesApplicator {
|
|||
return initial;
|
||||
}
|
||||
|
||||
|
||||
// TODO: Do we need this?
|
||||
public void enable() {
|
||||
if (client.world != null) {
|
||||
PlayerEntity player = client.player;
|
||||
if (!player.hasStatusEffect(StatusEffects.NIGHT_VISION) && EquinePredicates.PLAYER_BAT.test(player)) {
|
||||
player.addStatusEffect(new StatusEffectInstance(StatusEffects.NIGHT_VISION, 1, 1, false, false));
|
||||
if (client.world != null && client.player != null) {
|
||||
if (!client.player.hasStatusEffect(StatusEffects.NIGHT_VISION) && EquinePredicates.PLAYER_BAT.test(client.player)) {
|
||||
client.player.addStatusEffect(new StatusEffectInstance(StatusEffects.NIGHT_VISION, -1, 1, false, false));
|
||||
batEyesApplied = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue