jesus fine 7 here's your fucking fast conveyors
@ -1,5 +1,7 @@
|
|||||||
package com.hbm.entity.item;
|
package com.hbm.entity.item;
|
||||||
|
|
||||||
|
import com.hbm.blocks.network.BlockConveyorDouble;
|
||||||
|
import com.hbm.blocks.network.BlockConveyorTriple;
|
||||||
import com.hbm.lib.Library;
|
import com.hbm.lib.Library;
|
||||||
import com.hbm.util.fauxpointtwelve.BlockPos;
|
import com.hbm.util.fauxpointtwelve.BlockPos;
|
||||||
|
|
||||||
@ -148,7 +150,11 @@ public abstract class EntityMovingConveyorObject extends Entity {
|
|||||||
public abstract boolean onLeaveConveyor();
|
public abstract boolean onLeaveConveyor();
|
||||||
|
|
||||||
public double getMoveSpeed() {
|
public double getMoveSpeed() {
|
||||||
return 0.0625D;
|
double speed = 0.0625D; // this worked first try
|
||||||
|
Block b = worldObj.getBlock((int) Math.floor(posX), (int) Math.floor(posY), (int) Math.floor(posZ));
|
||||||
|
if (b.getClass().equals(BlockConveyorDouble.class)) return speed * 2;
|
||||||
|
else if (b.getClass().equals(BlockConveyorTriple.class)) return speed * 2.75;
|
||||||
|
else return speed;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 360 B After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 365 B After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 4.6 KiB |