From 734e7a1498ef6ca48f95f075aaa66372639c9618 Mon Sep 17 00:00:00 2001 From: Alkalus <3060479+draknyte1@users.noreply.github.com> Date: Wed, 3 Oct 2018 16:47:35 +0100 Subject: $ Fixed COFH OreDictionaryArbiter via ASM. $ Cleaned up GC Fuel ASM, Rockets are now tiered. % Added ability for Rover to use Diesel still. % Added Tooltip to the GC Fuel Loader, showing what Tier requires which fuel. > Bug still exists on sending packets, which may cause the client to boot the player back to the menu. --- src/Java/gtPlusPlus/api/objects/minecraft/BlockPos.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Java/gtPlusPlus/api/objects/minecraft/BlockPos.java') diff --git a/src/Java/gtPlusPlus/api/objects/minecraft/BlockPos.java b/src/Java/gtPlusPlus/api/objects/minecraft/BlockPos.java index 634035d712..8c940baba3 100644 --- a/src/Java/gtPlusPlus/api/objects/minecraft/BlockPos.java +++ b/src/Java/gtPlusPlus/api/objects/minecraft/BlockPos.java @@ -4,6 +4,7 @@ import java.io.Serializable; import java.util.HashSet; import java.util.Set; +import gregtech.api.interfaces.tileentity.IGregTechTileEntity; import net.minecraft.block.Block; import net.minecraft.world.World; @@ -44,6 +45,10 @@ public class BlockPos implements Serializable{ this.world = dim; } + public BlockPos(IGregTechTileEntity b) { + this (b.getXCoord(), b.getYCoord(), b.getZCoord(), b.getWorld()); + } + public String getLocationString() { return "[X: "+this.xPos+"][Y: "+this.yPos+"][Z: "+this.zPos+"][Dim: "+this.dim+"]"; } -- cgit