mirror of
https://github.com/GTNewHorizons/ThaumicBases.git
synced 2026-10-26 14:24:08 +00:00
Use getTotalWorldTime to do tick things (#18)
This commit is contained in:
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 {
|
} else {
|
||||||
++workTime;
|
++workTime;
|
||||||
if (this.worldObj.getWorldTime() % 10 == 0) {
|
if (this.worldObj.getTotalWorldTime() % 10 == 0) {
|
||||||
Aspect a = node.getAspects()
|
Aspect a = node.getAspects()
|
||||||
.getAspects()[
|
.getAspects()[
|
||||||
this.worldObj.rand.nextInt(node.getAspects().getAspects().length)];
|
this.worldObj.rand.nextInt(node.getAspects().getAspects().length)];
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ public class TileOverchanter extends TileEntity implements IInventory, IWandable
|
|||||||
// renderedLightning = null;
|
// renderedLightning = null;
|
||||||
} else {
|
} else {
|
||||||
if (this.isEnchantingStarted) {
|
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
|
// 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);
|
// 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(
|
this.worldObj.playSoundEffect(
|
||||||
|
|||||||
Reference in new issue
Block a user