Use getTotalWorldTime

This commit is contained in:
koolkrafter5 committed 2025-04-10 00:07:59 -04:00
1 parent aad613b221
commit d5a33f6f81
5 files changed
+6 -5

No files matched your search

@@ -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));
@@ -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;
@@ -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;
@@ -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,
@@ -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);