aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dev/mayaqq/ygasi/mixin/StatusEffectMixin.java
diff options
context:
space:
mode:
authorMaximusbarcz <maxim.baranek@gmail.com>2023-01-20 23:06:47 +0100
committerMaximusbarcz <maxim.baranek@gmail.com>2023-01-20 23:06:47 +0100
commitadaecef7df47ccdbfbda6f438c28696ff1ce8822 (patch)
tree46397c9d175ca67a69b7033189fec26dd6c6b4ae /src/main/java/dev/mayaqq/ygasi/mixin/StatusEffectMixin.java
parent531bb27e7eb07e08e1e423d0cf01c297fef890f6 (diff)
downloadygasi-adaecef7df47ccdbfbda6f438c28696ff1ce8822.tar.gz
ygasi-adaecef7df47ccdbfbda6f438c28696ff1ce8822.tar.bz2
ygasi-adaecef7df47ccdbfbda6f438c28696ff1ce8822.zip
I redid all the advancements and also started work on the second Offence2 ability
Diffstat (limited to 'src/main/java/dev/mayaqq/ygasi/mixin/StatusEffectMixin.java')
-rw-r--r--src/main/java/dev/mayaqq/ygasi/mixin/StatusEffectMixin.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/dev/mayaqq/ygasi/mixin/StatusEffectMixin.java b/src/main/java/dev/mayaqq/ygasi/mixin/StatusEffectMixin.java
index e2df799..a70d16a 100644
--- a/src/main/java/dev/mayaqq/ygasi/mixin/StatusEffectMixin.java
+++ b/src/main/java/dev/mayaqq/ygasi/mixin/StatusEffectMixin.java
@@ -19,7 +19,6 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import java.util.concurrent.TimeUnit;
-import static dev.mayaqq.ygasi.Ygasi.LOGGER;
import static dev.mayaqq.ygasi.abilities.mercenary.Offence1.attackList;
@Mixin(StatusEffect.class)
@@ -29,10 +28,9 @@ public abstract class StatusEffectMixin {
@Inject(method = "onRemoved", at = @At("HEAD"))
public void onUpdateStatusEffect(LivingEntity entity, AttributeContainer attributes, int amplifier, CallbackInfo ci) {
- LOGGER.info("onRemovedTick");
if (entity.isPlayer()) {
ServerPlayerEntity player = (ServerPlayerEntity) entity;
- if (this.getName() != null && this.getName().equals(StatusEffects.STRENGTH.getName()) && AdvUtils.getAdvancementProgress(player, "minecraft", "ygasi/offence1")) {
+ if (this.getName() != null && this.getName().equals(StatusEffects.STRENGTH.getName()) && AdvUtils.getAdvancementProgress(player, "ygasi", "mercenary/offence1")) {
Multithreading.schedule(() -> {
attackList.entrySet().removeIf(entry -> entry.getKey().startsWith(player.getUuidAsString()));
},4, TimeUnit.SECONDS);