2014-05-30 03:11:07 +00:00
From ee57713dd00e22d5629a29410922ed293163e3fe Mon Sep 17 00:00:00 2001
2014-05-22 17:32:42 +00:00
From: "Evan A. Haskell" <eah2119@gmail.com>
Date: Sat, 19 Apr 2014 16:58:26 -0400
Subject: [PATCH] Alternative Hopper Ticking
diff --git a/src/main/java/net/minecraft/server/BlockHopper.java b/src/main/java/net/minecraft/server/BlockHopper.java
2014-05-30 03:11:07 +00:00
index 9e64702..e1e626b 100644
2014-05-22 17:32:42 +00:00
--- a/src/main/java/net/minecraft/server/BlockHopper.java
+++ b/src/main/java/net/minecraft/server/BlockHopper.java
2014-05-30 03:11:07 +00:00
@@ -87,6 +87,17 @@ public class BlockHopper extends BlockContainer {
2014-05-22 17:32:42 +00:00
if (flag != flag1) {
world.setData(i, j, k, i1 | (flag ? 0 : 8), 4);
+ // Spigot start - When this hopper becomes unpowered, make it active.
2014-05-30 03:11:07 +00:00
+ // Called when this block's power level changes. flag1 is the current
+ // isNotPowered from metadata. flag is the recalculated isNotPowered.
2014-05-22 17:32:42 +00:00
+ if (world.spigotConfig.altHopperTicking) {
2014-05-30 03:11:07 +00:00
+ // e returns the TileEntityHopper associated with this BlockHopper.
2014-05-22 17:32:42 +00:00
+ TileEntityHopper hopper = e((IBlockAccess) world, i, j, k);
+ if (flag && hopper != null) {
+ hopper.makeTick();
+ }
+ }
+ // Spigot end
}
}
2014-05-30 03:11:07 +00:00
@@ -163,4 +174,17 @@ public class BlockHopper extends BlockContainer {
2014-05-22 17:32:42 +00:00
public static TileEntityHopper e(IBlockAccess iblockaccess, int i, int j, int k) {
return (TileEntityHopper) iblockaccess.getTileEntity(i, j, k);
}
+
+ // Spigot start - Use random block updates to make hoppers active.
+ @Override
+ public void a(World world, int i, int j, int k, Random random) {
+ if (world.spigotConfig.altHopperTicking) {
2014-05-30 03:11:07 +00:00
+ // e returns the TileEntityHopper associated with this BlockHopper.
2014-05-22 17:32:42 +00:00
+ TileEntityHopper hopper = e((IBlockAccess) world, i, j, k);
+ if (hopper != null) {
+ hopper.makeTick();
+ }
+ }
+ }
+ // Spigot end
}
diff --git a/src/main/java/net/minecraft/server/Chunk.java b/src/main/java/net/minecraft/server/Chunk.java
2014-05-30 03:11:07 +00:00
index 2c95832..b5014b0 100644
2014-05-22 17:32:42 +00:00
--- a/src/main/java/net/minecraft/server/Chunk.java
+++ b/src/main/java/net/minecraft/server/Chunk.java
@@ -722,6 +722,11 @@ public class Chunk {
tileentity.t();
this.tileEntities.put(chunkposition, tileentity);
2014-05-30 03:11:07 +00:00
+ // Spigot start - The tile entity has a world, now hoppers can be born ticking.
2014-05-22 17:32:42 +00:00
+ if (this.world.spigotConfig.altHopperTicking) {
+ this.world.triggerHoppersList.add(tileentity);
+ }
+ // Spigot end
// CraftBukkit start
} else {
System.out.println("Attempted to place a tile entity (" + tileentity + ") at " + tileentity.x + "," + tileentity.y + "," + tileentity.z
diff --git a/src/main/java/net/minecraft/server/EntityItem.java b/src/main/java/net/minecraft/server/EntityItem.java
2014-05-30 03:11:07 +00:00
index 5eb893f..6dfedc0 100644
2014-05-22 17:32:42 +00:00
--- a/src/main/java/net/minecraft/server/EntityItem.java
+++ b/src/main/java/net/minecraft/server/EntityItem.java
2014-05-30 03:11:07 +00:00
@@ -102,6 +102,27 @@ public class EntityItem extends Entity {
2014-05-22 17:32:42 +00:00
if (this.onGround) {
this.motY *= -0.5D;
}
2014-05-30 03:11:07 +00:00
+ // Spigot start - Make the hopper(s) below this item active.
+ // Called each tick on each item entity.
2014-05-22 17:32:42 +00:00
+ if (this.world.spigotConfig.altHopperTicking) {
+ int xi = MathHelper.floor(this.boundingBox.a);
+ int yi = MathHelper.floor(this.boundingBox.b) - 1;
+ int zi = MathHelper.floor(this.boundingBox.c);
+ int xf = MathHelper.floor(this.boundingBox.d);
+ int yf = MathHelper.floor(this.boundingBox.e) - 1;
+ int zf = MathHelper.floor(this.boundingBox.f);
+ for (int a = xi; a <= xf; a++) {
+ for (int c = zi; c <= zf; c++) {
+ for (int b = yi; b <= yf; b++) {
+ TileEntity tileEntity = this.world.getTileEntity(a, b, c);
+ if (tileEntity instanceof TileEntityHopper) {
+ ((TileEntityHopper) tileEntity).makeTick();
+ }
+ }
+ }
+ }
+ }
+ // Spigot end
// ++this.age; // CraftBukkit - Moved up
if (!this.world.isStatic && this.age >= world.spigotConfig.itemDespawnRate) { // Spigot
diff --git a/src/main/java/net/minecraft/server/EntityMinecartAbstract.java b/src/main/java/net/minecraft/server/EntityMinecartAbstract.java
2014-05-30 03:11:07 +00:00
index 166206c..de60840 100644
2014-05-22 17:32:42 +00:00
--- a/src/main/java/net/minecraft/server/EntityMinecartAbstract.java
+++ b/src/main/java/net/minecraft/server/EntityMinecartAbstract.java
2014-05-30 03:11:07 +00:00
@@ -342,6 +342,27 @@ public abstract class EntityMinecartAbstract extends Entity {
2014-05-22 17:32:42 +00:00
this.passenger = null;
}
2014-05-30 03:11:07 +00:00
+ // Spigot start - Make hoppers around this container minecart active.
+ // Called each tick on each minecart.
2014-05-22 17:32:42 +00:00
+ if (this.world.spigotConfig.altHopperTicking && this instanceof EntityMinecartContainer) {
+ int xi = MathHelper.floor(this.boundingBox.a) - 1;
+ int yi = MathHelper.floor(this.boundingBox.b) - 1;
+ int zi = MathHelper.floor(this.boundingBox.c) - 1;
+ int xf = MathHelper.floor(this.boundingBox.d) + 1;
+ int yf = MathHelper.floor(this.boundingBox.e) + 1;
+ int zf = MathHelper.floor(this.boundingBox.f) + 1;
+ for (int a = xi; a <= xf; a++) {
+ for (int b = yi; b <= yf; b++) {
+ for (int c = zi; c <= zf; c++) {
+ TileEntity tileEntity = this.world.getTileEntity(a, b, c);
+ if (tileEntity instanceof TileEntityHopper) {
+ ((TileEntityHopper) tileEntity).makeTick();
+ }
+ }
+ }
+ }
+ }
+ // Spigot end
}
}
diff --git a/src/main/java/net/minecraft/server/EntityOcelot.java b/src/main/java/net/minecraft/server/EntityOcelot.java
2014-05-30 03:11:07 +00:00
index 1ce9fb8..b3e6ec8 100644
2014-05-22 17:32:42 +00:00
--- a/src/main/java/net/minecraft/server/EntityOcelot.java
+++ b/src/main/java/net/minecraft/server/EntityOcelot.java
2014-05-30 03:11:07 +00:00
@@ -27,6 +27,31 @@ public class EntityOcelot extends EntityTameableAnimal {
2014-05-22 17:32:42 +00:00
this.datawatcher.a(18, Byte.valueOf((byte) 0));
}
2014-05-30 03:11:07 +00:00
+ // Spigot start - When this ocelot begins standing, chests below this ocelot must be
+ // updated as if its contents have changed. We update chests if this ocelot is sitting
+ // knowing that it may be dead, gone, or standing after this method returns.
+ // Called each tick on each ocelot.
2014-05-22 17:32:42 +00:00
+ @Override
+ public void h() {
+ if (this.world.spigotConfig.altHopperTicking && this.isSitting()) {
+ int xi = MathHelper.floor(this.boundingBox.a);
+ int yi = MathHelper.floor(this.boundingBox.b) - 1;
+ int zi = MathHelper.floor(this.boundingBox.c);
+ int xf = MathHelper.floor(this.boundingBox.d);
+ int yf = MathHelper.floor(this.boundingBox.e) - 1;
+ int zf = MathHelper.floor(this.boundingBox.f);
+ for (int a = xi; a <= xf; a++) {
+ for (int c = zi; c <= zf; c++) {
+ for (int b = yi; b <= yf; b++) {
+ this.world.updateChestAndHoppers(a, b, c);
+ }
+ }
+ }
+ }
+ super.h();
+ }
+ // Spigot end
+
public void bo() {
if (this.getControllerMove().a()) {
double d0 = this.getControllerMove().b();
diff --git a/src/main/java/net/minecraft/server/TileEntity.java b/src/main/java/net/minecraft/server/TileEntity.java
2014-05-30 03:11:07 +00:00
index 19d008c..c5859e5 100644
2014-05-22 17:32:42 +00:00
--- a/src/main/java/net/minecraft/server/TileEntity.java
+++ b/src/main/java/net/minecraft/server/TileEntity.java
2014-05-30 03:11:07 +00:00
@@ -24,6 +24,40 @@ public class TileEntity {
2014-05-22 17:32:42 +00:00
public int g = -1;
public Block h;
+ // Spigot start
2014-05-30 03:11:07 +00:00
+ // Helper method for scheduleTicks. If the hopper at x0, y0, z0 is pointed
+ // at this tile entity, then make it active.
2014-05-22 17:32:42 +00:00
+ private void scheduleTick(int x0, int y0, int z0) {
+ TileEntity tileEntity = this.world.getTileEntity(x0, y0, z0);
+ if (tileEntity instanceof TileEntityHopper && tileEntity.world != null) {
2014-05-30 03:11:07 +00:00
+ // i is the metadeta assoiated with the direction the hopper faces.
2014-05-22 17:32:42 +00:00
+ int i = BlockHopper.b(tileEntity.p());
2014-05-30 03:11:07 +00:00
+ // Facing class provides arrays for direction offset.
2014-05-22 17:32:42 +00:00
+ if (tileEntity.x + Facing.b[i] == this.x && tileEntity.y + Facing.c[i] == this.y && tileEntity.z + Facing.d[i] == this.z) {
+ ((TileEntityHopper) tileEntity).makeTick();
+ }
+ }
+ }
+
2014-05-30 03:11:07 +00:00
+ // Called from update when the contents have changed, so hoppers need updates.
+ // Check all 6 faces.
2014-05-22 17:32:42 +00:00
+ public void scheduleTicks() {
+ if (this.world != null && this.world.spigotConfig.altHopperTicking) {
2014-05-30 03:11:07 +00:00
+ // Check the top
2014-05-22 17:32:42 +00:00
+ this.scheduleTick(this.x, this.y + 1, this.z);
2014-05-30 03:11:07 +00:00
+ // Check the sides
2014-05-22 17:32:42 +00:00
+ for (int i = 2; i < 6; i++) {
+ this.scheduleTick(this.x + Facing.b[i], this.y, this.z + Facing.d[i]);
+ }
2014-05-30 03:11:07 +00:00
+ // Check the bottom.
2014-05-22 17:32:42 +00:00
+ TileEntity tileEntity = this.world.getTileEntity(this.x, this.y - 1, this.z);
+ if (tileEntity instanceof TileEntityHopper && tileEntity.world != null) {
+ ((TileEntityHopper) tileEntity).makeTick();
+ }
+ }
+ }
+ // Spigot end
+
public TileEntity() {}
private static void a(Class oclass, String s) {
2014-05-30 03:11:07 +00:00
@@ -105,6 +139,10 @@ public class TileEntity {
2014-05-22 17:32:42 +00:00
if (this.q() != Blocks.AIR) {
this.world.f(this.x, this.y, this.z, this.q());
}
2014-05-30 03:11:07 +00:00
+ // Spigot start - Called when the contents have changed, so hoppers around this
+ // tile need updating.
2014-05-22 17:32:42 +00:00
+ this.scheduleTicks();
+ // Spigot end
}
}
diff --git a/src/main/java/net/minecraft/server/TileEntityHopper.java b/src/main/java/net/minecraft/server/TileEntityHopper.java
2014-05-30 03:11:07 +00:00
index b620394..c7b3495 100644
2014-05-22 17:32:42 +00:00
--- a/src/main/java/net/minecraft/server/TileEntityHopper.java
+++ b/src/main/java/net/minecraft/server/TileEntityHopper.java
2014-05-30 03:11:07 +00:00
@@ -17,6 +17,43 @@ public class TileEntityHopper extends TileEntity implements IHopper {
2014-05-22 17:32:42 +00:00
private String i;
private int j = -1;
+ // Spigot start
2014-05-30 03:11:07 +00:00
+ private long nextTick = -1; // Next tick this hopper will be ticked.
+ private long lastTick = -1; // Last tick this hopper was polled.
2014-05-22 17:32:42 +00:00
+
2014-05-30 03:11:07 +00:00
+ // If this hopper is not cooling down, assaign a visible tick for next time.
2014-05-22 17:32:42 +00:00
+ public void makeTick() {
+ if (!this.j()) {
+ this.c(0);
+ }
+ }
+
+ // Contents changed, so make this hopper active.
+ public void scheduleHopperTick() {
+ if (this.world != null && this.world.spigotConfig.altHopperTicking) {
+ this.makeTick();
+ }
+ }
+
2014-05-30 03:11:07 +00:00
+ // Called after this hopper is assaigned a world or when altHopperTicking is turned
+ // on from reload.
2014-05-22 17:32:42 +00:00
+ public void convertToScheduling() {
2014-05-30 03:11:07 +00:00
+ // j is the cooldown in ticks
2014-05-22 17:32:42 +00:00
+ this.c(this.j);
+ }
+
+ // Called when alt hopper ticking is turned off from the reload command
+ public void convertToPolling() {
+ long cooldownDiff;
+ if (this.lastTick == this.world.getTime()) {
+ cooldownDiff = this.nextTick - this.world.getTime();
+ } else {
+ cooldownDiff = this.nextTick - this.world.getTime() + 1;
+ }
+ this.c((int) Math.max(0, Math.min(cooldownDiff, Integer.MAX_VALUE)));
+ }
+ // Spigot end
+
// CraftBukkit start - add fields and methods
public List<HumanEntity> transaction = new java.util.ArrayList<HumanEntity>();
private int maxStack = MAX_STACK;
2014-05-30 03:11:07 +00:00
@@ -80,7 +117,20 @@ public class TileEntityHopper extends TileEntity implements IHopper {
2014-05-22 17:32:42 +00:00
}
nbttagcompound.set("Items", nbttaglist);
- nbttagcompound.setInt("TransferCooldown", this.j);
+ // Spigot start - Need to write the correct cooldown to disk. We convert from long to int on saving.
+ if (this.world != null && this.world.spigotConfig.altHopperTicking) {
+ long cooldownDiff;
+ if (this.lastTick == this.world.getTime()) {
+ cooldownDiff = this.nextTick - this.world.getTime();
+ } else {
+ cooldownDiff = this.nextTick - this.world.getTime() + 1;
+ }
+ nbttagcompound.setInt("TransferCooldown", (int) Math.max(0, Math.min(cooldownDiff, Integer.MAX_VALUE)));
+ } else {
2014-05-30 03:11:07 +00:00
+ // j is the cooldown in ticks.
2014-05-22 17:32:42 +00:00
+ nbttagcompound.setInt("TransferCooldown", this.j);
+ }
+ // Spigot end
if (this.k_()) {
nbttagcompound.setString("CustomName", this.i);
}
2014-05-30 03:11:07 +00:00
@@ -88,6 +138,9 @@ public class TileEntityHopper extends TileEntity implements IHopper {
2014-05-22 17:32:42 +00:00
public void update() {
super.update();
+ // Spigot start - The contents have changed, so make this hopper active.
+ this.scheduleHopperTick();
+ // Spigot end
}
public int getSize() {
2014-05-30 03:11:07 +00:00
@@ -167,11 +220,21 @@ public class TileEntityHopper extends TileEntity implements IHopper {
2014-05-22 17:32:42 +00:00
public void h() {
if (this.world != null && !this.world.isStatic) {
- --this.j;
- if (!this.j()) {
- this.c(0);
- this.i();
+ // Spigot start
+ if (this.world.spigotConfig.altHopperTicking) {
+ this.lastTick = this.world.getTime();
+ if (this.nextTick == this.world.getTime()) {
2014-05-30 03:11:07 +00:00
+ // Method that does the pushing and pulling.
2014-05-22 17:32:42 +00:00
+ this.i();
+ }
+ } else {
+ --this.j;
+ if (!this.j()) {
+ this.c(0);
+ this.i();
+ }
}
+ // Spigot end
}
}
2014-05-30 03:11:07 +00:00
@@ -196,7 +259,7 @@ public class TileEntityHopper extends TileEntity implements IHopper {
2014-05-22 17:32:42 +00:00
}
// Spigot start
- if ( !this.j() )
+ if ( !world.spigotConfig.altHopperTicking && !this.j() )
{
this.c( world.spigotConfig.hopperCheck );
}
2014-05-30 03:11:07 +00:00
@@ -584,10 +647,34 @@ public class TileEntityHopper extends TileEntity implements IHopper {
2014-05-22 17:32:42 +00:00
}
public void c(int i) {
- this.j = i;
+ // Spigot start - i is the delay for which this hopper will be ticked next.
+ // i of 1 or below implies a tick next tick.
+ if (this.world != null && this.world.spigotConfig.altHopperTicking) {
+ if (i <= 0) {
+ i = 1;
+ }
+ if (this.lastTick == this.world.getTime()) {
+ this.nextTick = this.world.getTime() + i;
+ } else {
+ this.nextTick = this.world.getTime() + i - 1;
+ }
+ } else {
+ this.j = i;
+ }
+ // Spigot end
}
public boolean j() {
- return this.j > 0;
+ // Spigot start - Return whether this hopper is cooling down.
+ if (this.world != null && this.world.spigotConfig.altHopperTicking) {
+ if (this.lastTick == this.world.getTime()) {
+ return this.nextTick > this.world.getTime();
+ } else {
+ return this.nextTick >= this.world.getTime();
+ }
+ } else {
+ return this.j > 0;
+ }
+ // Spigot end
}
}
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
2014-05-30 03:11:07 +00:00
index a879ae3..a2fa854 100644
2014-05-22 17:32:42 +00:00
--- a/src/main/java/net/minecraft/server/World.java
+++ b/src/main/java/net/minecraft/server/World.java
@@ -113,6 +113,7 @@ public abstract class World implements IBlockAccess {
private final byte chunkTickRadius;
public static boolean haveWeSilencedAPhysicsCrash;
public static String blockLocation;
2014-05-30 03:11:07 +00:00
+ public List<TileEntity> triggerHoppersList = new ArrayList<TileEntity>(); // Spigot, When altHopperTicking, tile entities being added go through here.
2014-05-22 17:32:42 +00:00
public static long chunkToKey(int x, int z)
{
2014-05-30 03:11:07 +00:00
@@ -130,6 +131,42 @@ public abstract class World implements IBlockAccess {
2014-05-22 17:32:42 +00:00
{
return (int) ( ( ( k >> 32 ) & 0xFFFF0000L ) | ( ( k >> 16 ) & 0x0000FFFF ) );
}
+
2014-05-30 03:11:07 +00:00
+ // Spigot Start - Hoppers need to be born ticking.
2014-05-22 17:32:42 +00:00
+ private void initializeHoppers() {
+ if (this.spigotConfig.altHopperTicking) {
+ for (TileEntity o : this.triggerHoppersList) {
+ o.scheduleTicks();
+ if (o instanceof TileEntityHopper) {
+ ((TileEntityHopper) o).convertToScheduling();
+ ((TileEntityHopper) o).scheduleHopperTick();
+ }
+ }
+ }
+ triggerHoppersList.clear();
+ }
+
2014-05-30 03:11:07 +00:00
+ // Helper method for altHopperTicking. Updates chests at the specified location,
+ // accounting for double chests. Updating the chest will update adjacent hoppers.
2014-05-22 17:32:42 +00:00
+ public void updateChestAndHoppers(int a, int b, int c) {
+ Block block = this.getType(a, b, c);
+ if (block instanceof BlockChest) {
+ TileEntity tile = this.getTileEntity(a, b, c);
+ if (tile instanceof TileEntityChest) {
+ tile.scheduleTicks();
+ }
+ for (int i = 2; i < 6; i++) {
2014-05-30 03:11:07 +00:00
+ // Facing class provides arrays for direction offset.
2014-05-22 17:32:42 +00:00
+ if (this.getType(a + Facing.b[i], b, c + Facing.d[i]) == block) {
+ tile = this.getTileEntity(a + Facing.b[i], b, c + Facing.d[i]);
+ if (tile instanceof TileEntityChest) {
+ tile.scheduleTicks();
+ }
+ break;
+ }
+ }
+ }
+ }
// Spigot end
public BiomeBase getBiome(int i, int j) {
2014-05-30 03:11:07 +00:00
@@ -404,6 +441,14 @@ public abstract class World implements IBlockAccess {
2014-05-22 17:32:42 +00:00
this.notifyAndUpdatePhysics(i, j, k, chunk, block1, block, i1);
// CraftBukkit end
}
+ // Spigot start - If this block is changing to that which a chest beneath it
2014-05-30 03:11:07 +00:00
+ // becomes able to be opened, then the chest must be updated.
+ // block1 is the old block. block is the new block. r returns true if the block type
+ // prevents access to a chest.
2014-05-22 17:32:42 +00:00
+ if (this.spigotConfig.altHopperTicking && block1 != null && block1.r() && !block.r()) {
+ this.updateChestAndHoppers(i, j - 1, k);
+ }
+ // Spigot end
return flag;
}
2014-05-30 03:11:07 +00:00
@@ -1455,6 +1500,7 @@ public abstract class World implements IBlockAccess {
2014-05-22 17:32:42 +00:00
}
// Spigot End
this.M = true;
2014-05-30 03:11:07 +00:00
+ this.initializeHoppers(); // Spigot - Initializes hoppers which have been added recently.
2014-05-22 17:32:42 +00:00
Iterator iterator = this.tileEntityList.iterator();
while (iterator.hasNext()) {
diff --git a/src/main/java/org/spigotmc/SpigotWorldConfig.java b/src/main/java/org/spigotmc/SpigotWorldConfig.java
index 3e6b1e6..a81b7c9 100644
--- a/src/main/java/org/spigotmc/SpigotWorldConfig.java
+++ b/src/main/java/org/spigotmc/SpigotWorldConfig.java
@@ -166,11 +166,35 @@ public class SpigotWorldConfig
log( "Entity Tracking Range: Pl " + playerTrackingRange + " / An " + animalTrackingRange + " / Mo " + monsterTrackingRange + " / Mi " + miscTrackingRange + " / Other " + otherTrackingRange );
}
+ public boolean altHopperTicking;
public int hopperTransfer;
public int hopperCheck;
public int hopperAmount;
private void hoppers()
{
+ // Alternate ticking method. Uses inventory changes, redstone updates etc.
+ // to update hoppers. Hopper-check is disabled when this is true.
+ boolean prev = altHopperTicking;
+ altHopperTicking = getBoolean( "hopper-alt-ticking", false );
+ // Necessary for the reload command
+ if (prev != altHopperTicking) {
+ net.minecraft.server.World world = (net.minecraft.server.World) Bukkit.getWorld(this.worldName);
+ if (world != null) {
+ if (altHopperTicking) {
+ for (Object o : world.tileEntityList) {
+ if (o instanceof net.minecraft.server.TileEntityHopper) {
+ ((net.minecraft.server.TileEntityHopper) o).convertToScheduling();
+ }
+ }
+ } else {
+ for (Object o : world.tileEntityList) {
+ if (o instanceof net.minecraft.server.TileEntityHopper) {
+ ((net.minecraft.server.TileEntityHopper) o).convertToPolling();
+ }
+ }
+ }
+ }
+ }
// Set the tick delay between hopper item movements
hopperTransfer = getInt( "ticks-per.hopper-transfer", 8 );
// Set the tick delay between checking for items after the associated
@@ -178,6 +202,7 @@ public class SpigotWorldConfig
// hopper sorting machines from becoming out of sync.
hopperCheck = getInt( "ticks-per.hopper-check", hopperTransfer );
hopperAmount = getInt( "hopper-amount", 1 );
+ log( "Alternative Hopper Ticking: " + altHopperTicking );
log( "Hopper Transfer: " + hopperTransfer + " Hopper Check: " + hopperCheck + " Hopper Amount: " + hopperAmount );
}
--
1.9.1