Skip to content

Commit

Permalink
Use getTotalWorldTime to do tick things (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
miozune authored Aug 4, 2022
1 parent b4acc9b commit 36b8fee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/tb/common/tile/TileNodeManipulator.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public void updateEntity() {

} 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)];
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/tb/common/tile/TileOverchanter.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void updateEntity() {
// 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(
Expand Down

0 comments on commit 36b8fee

Please sign in to comment.