From d5a33f6f81cdb03ec1731d13acef2f7c460ecce1 Mon Sep 17 00:00:00 2001 From: koolkrafter5 Date: Thu, 10 Apr 2025 00:07:59 -0400 Subject: [PATCH] Use getTotalWorldTime --- .../alchemicalWizardry/common/items/ArmourInhibitor.java | 3 ++- .../alchemicalWizardry/common/items/ItemBloodLetterPack.java | 2 +- .../alchemicalWizardry/common/items/ItemRitualDiviner.java | 2 +- .../alchemicalWizardry/common/items/armour/BoundArmour.java | 2 +- .../alchemicalWizardry/common/items/armour/OmegaArmour.java | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/items/ArmourInhibitor.java b/src/main/java/WayofTime/alchemicalWizardry/common/items/ArmourInhibitor.java index 0384d7a0..d635a1b9 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/items/ArmourInhibitor.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/items/ArmourInhibitor.java @@ -109,7 +109,8 @@ public class ArmourInhibitor extends EnergyItems { } if (par1ItemStack.getTagCompound().getBoolean("isActive")) { - if (par2World.getWorldTime() % tickDelay == par1ItemStack.getTagCompound().getInteger("worldTimeDelay")) {} + if (par2World.getTotalWorldTime() % tickDelay + == par1ItemStack.getTagCompound().getInteger("worldTimeDelay")) {} // TODO Do stuff par3EntityPlayer.addPotionEffect(new PotionEffect(AlchemicalWizardry.customPotionInhibit.id, 2, 0)); diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/items/ItemBloodLetterPack.java b/src/main/java/WayofTime/alchemicalWizardry/common/items/ItemBloodLetterPack.java index f6bab41d..af826e92 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/items/ItemBloodLetterPack.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/items/ItemBloodLetterPack.java @@ -129,7 +129,7 @@ public class ItemBloodLetterPack extends ItemArmor implements ArmourUpgrade, IAl return; } - if (world.getWorldTime() % tickRate == 0) { + if (world.getTotalWorldTime() % tickRate == 0) { boolean shouldExecute = player.getHealth() / player.getMaxHealth() > activationPoint && this.getStoredLP(itemStack) < maxStored; diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/items/ItemRitualDiviner.java b/src/main/java/WayofTime/alchemicalWizardry/common/items/ItemRitualDiviner.java index 25ad0f5a..0b102bf0 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/items/ItemRitualDiviner.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/items/ItemRitualDiviner.java @@ -302,7 +302,7 @@ public class ItemRitualDiviner extends EnergyItems implements IRitualDiviner { @Override public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean par5) { - if (entity instanceof EntityPlayer && hasStoredLocation(stack) && world.getWorldTime() % 5 == 0) { + if (entity instanceof EntityPlayer && hasStoredLocation(stack) && world.getTotalWorldTime() % 5 == 0) { Int3 loc = getStoredLocation(stack); int x = loc.xCoord; diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/items/armour/BoundArmour.java b/src/main/java/WayofTime/alchemicalWizardry/common/items/armour/BoundArmour.java index 3da52bba..af13d913 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/items/armour/BoundArmour.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/items/armour/BoundArmour.java @@ -378,7 +378,7 @@ public class BoundArmour extends ItemArmor blood--; } - if (par2World.getWorldTime() % 200 == 0) { + if (par2World.getTotalWorldTime() % 200 == 0) { if (getUpgradeCostMultiplier(par1ItemStack) > 0.02f) { EnergyItems.syphonBatteries( par1ItemStack, diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/items/armour/OmegaArmour.java b/src/main/java/WayofTime/alchemicalWizardry/common/items/armour/OmegaArmour.java index f2525bcf..4ec8dda5 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/items/armour/OmegaArmour.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/items/armour/OmegaArmour.java @@ -79,7 +79,7 @@ public abstract class OmegaArmour extends BoundArmour { public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) { super.onArmorTick(world, player, itemStack); - if (world.getWorldTime() % 50 == 0) { + if (world.getTotalWorldTime() % 50 == 0) { if (this.storeBiomeID()) { int xCoord = (int) Math.floor(player.posX); int zCoord = (int) Math.floor(player.posZ);