From aa866b069539a89bc1bb5d6ec48de21786909359 Mon Sep 17 00:00:00 2001 From: Tsundora Date: Sun, 1 Dec 2024 00:47:03 +0700 Subject: [PATCH] Update Ageable.java asf --- .../sapience/capability/ageable/Ageable.java | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/src/main/java/com/infamous/sapience/capability/ageable/Ageable.java b/src/main/java/com/infamous/sapience/capability/ageable/Ageable.java index 2c23b1f..10fc09a 100644 --- a/src/main/java/com/infamous/sapience/capability/ageable/Ageable.java +++ b/src/main/java/com/infamous/sapience/capability/ageable/Ageable.java @@ -97,29 +97,7 @@ public int getForcedAgeTimer() { * Increases this entity's age, optionally updating {@link #forcedAge}. If the entity is an adult (if the entity's * age is greater than or equal to 0) then the entity's age will be set to {@link #forcedAge}. */ - public void ageUp(int growthSeconds, boolean updateForcedAge) { - int growingAge = this.getGrowingAge(); - int originalAge = growingAge; - growingAge += growthSeconds * 20; - if (growingAge > 0) { - growingAge = 0; - } - - int ageAmount = growingAge - originalAge; - this.setGrowingAge(growingAge); - if (updateForcedAge) { - this.forcedAge += ageAmount; - if (this.forcedAgeTimer == 0) { - this.forcedAgeTimer = FORCED_AGE_TIME; - } - } - - if (this.getGrowingAge() == 0) { - this.setGrowingAge(this.forcedAge); - } - } - /** * Increases this entity's age. If the entity is an adult (if the entity's age is greater than or equal to 0) then * the entity's age will be set to {@link #forcedAge}. This method does not update {@link #forcedAge}. @@ -195,4 +173,4 @@ public boolean canSelfAge() { && this.getGrowingAge() < 0; } } -} \ No newline at end of file +}