From ec99953837bf4b8b581292ddaf146a9fdc2f2d2e Mon Sep 17 00:00:00 2001 From: HaooooZhang Date: Tue, 30 Jan 2024 19:10:58 +0800 Subject: [PATCH] =?UTF-8?q?Ciallo=EF=BD=9E(=E2=88=A0=E3=83=BB=CF=89<=20)?= =?UTF-8?q?=E2=8C=92=E2=98=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/youren/touhou/EirinYagokorosPharmacy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/youren/touhou/EirinYagokorosPharmacy.java b/src/main/java/youren/touhou/EirinYagokorosPharmacy.java index 6d662a9..1e7e102 100644 --- a/src/main/java/youren/touhou/EirinYagokorosPharmacy.java +++ b/src/main/java/youren/touhou/EirinYagokorosPharmacy.java @@ -31,7 +31,7 @@ public class EirinYagokorosPharmacy implements ModInitializer { public static final StatusEffect UNDEAD_EFFECT = new EffectUndead(); public static final StatusEffect ULTRAMARINE_EFFECT = new EffectUltramarine(); public static final StatusEffect RESUMPTION_EFFECT = new EffectResumption(); - public static final Potion HOURAI_POTION = new Potion("hourai_potion", new StatusEffectInstance(UNDEAD_EFFECT, Integer.MAX_VALUE)); + public static final Potion HOURAI_POTION = new Potion("hourai_potion", new StatusEffectInstance(UNDEAD_EFFECT, -1)); public static final Potion ULTRAMARINE_POTION = new Potion("ultramarine_potion", new StatusEffectInstance(ULTRAMARINE_EFFECT, 4800)); public static final Potion RESUMPTION_POTION = new Potion("resumption_potion", new StatusEffectInstance(RESUMPTION_EFFECT, 200)); public static final Item ITEM_FLESH = new Item(new FabricItemSettings().maxCount(1)); @@ -75,7 +75,7 @@ private void handlePlayerEffect(ServerPlayerEntity player) { if (hasUndeadEffect) { undeadPlayers.put(playerUUID, true); } else if (undeadPlayers.getOrDefault(playerUUID, false)) { - player.addStatusEffect(new StatusEffectInstance(EirinYagokorosPharmacy.UNDEAD_EFFECT, 200, 0)); + player.addStatusEffect(new StatusEffectInstance(EirinYagokorosPharmacy.UNDEAD_EFFECT, -1, 0)); undeadPlayers.put(playerUUID, false); } }