Use getTotalWorldTime to do tick things (#18)

This commit is contained in:
miozune authored and GitHub committed 2022-08-04 15:00:03 +07:00
1 parent b4acc9bc4f
commit 36b8feea17
2 files changed
+2 -2

No files matched your search

@@ -147,7 +147,7 @@ public class TileNodeManipulator extends TileEntity implements IWandable {
} else {
++workTime;
if (this.worldObj.getWorldTime() % 10 == 0) {
if (this.worldObj.getTotalWorldTime() % 10 == 0) {
Aspect a = node.getAspects()
.getAspects()[
this.worldObj.rand.nextInt(node.getAspects().getAspects().length)];
@@ -63,7 +63,7 @@ public class TileOverchanter extends TileEntity implements IInventory, IWandable
// renderedLightning = null;
} else {
if (this.isEnchantingStarted) {
if (this.worldObj.getWorldTime() % 20 == 0) {
if (this.worldObj.getTotalWorldTime() % 20 == 0) {
// renderedLightning = new Lightning(this.worldObj.rand, new Coord3D(0,0,0), new
// Coord3D(MathUtils.randomDouble(this.worldObj.rand)/50,MathUtils.randomDouble(this.worldObj.rand)/50,MathUtils.randomDouble(this.worldObj.rand)/50), 0.3F, 1,0,1);
this.worldObj.playSoundEffect(