mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 05:54:27 +00:00
Revert "#2877 Fix WAILA crash with telepads/travel anchors"
This reverts commit dc0004d008.
This commit is contained in:
1 parent
bb5e835f99
commit
db8f99379b
3 files changed
+6
-6
No files matched your search
@@ -97,7 +97,7 @@ public class BlockTravelAnchor extends BlockEio implements IGuiHandler, ITileEnt
|
||||
TileEntity te = world.getTileEntity(x, y, z);
|
||||
if (te instanceof TileTravelAnchor) {
|
||||
TileTravelAnchor tef = (TileTravelAnchor) te;
|
||||
if (tef.getSourceBlock() != this) {
|
||||
if (tef.getSourceBlock() != null) {
|
||||
return tef.getSourceBlock().getIcon(blockSide, tef.getSourceBlockMetadata());
|
||||
}
|
||||
}
|
||||
@@ -182,7 +182,7 @@ public class BlockTravelAnchor extends BlockEio implements IGuiHandler, ITileEnt
|
||||
|
||||
ItemStack itemStack = new ItemStack(this);
|
||||
Block srcBlk = anchor.getSourceBlock();
|
||||
if (srcBlk != this) {
|
||||
if (srcBlk != null) {
|
||||
itemStack = createItemStackForSourceBlock(anchor.getSourceBlock(), anchor.getSourceBlockMetadata());
|
||||
drop.stackTagCompound = (NBTTagCompound) itemStack.stackTagCompound.copy();
|
||||
}
|
||||
@@ -199,7 +199,7 @@ public class BlockTravelAnchor extends BlockEio implements IGuiHandler, ITileEnt
|
||||
TileEntity te = world.getTileEntity(x, y, z);
|
||||
if (te instanceof TileTravelAnchor) {
|
||||
TileTravelAnchor tef = (TileTravelAnchor) te;
|
||||
if (tef.getSourceBlock() != this) {
|
||||
if (tef.getSourceBlock() != null) {
|
||||
return tef.getSourceBlock().colorMultiplier(world, x, y, z);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -174,7 +174,7 @@ public class TileTravelAnchor extends TileEntityEio implements ITravelAccessable
|
||||
|
||||
@Override
|
||||
public Block getSourceBlock() {
|
||||
return sourceBlock == null ? getBlockType() : sourceBlock;
|
||||
return sourceBlock;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -139,8 +139,8 @@ public class WailaCompat implements IWailaDataProvider {
|
||||
if(accessor.getTileEntity() instanceof IConduitBundle && ConduitUtil.isFacadeHidden((IConduitBundle) accessor.getTileEntity(), accessor.getPlayer())) {
|
||||
return null;
|
||||
}
|
||||
IFacade block = (IFacade) accessor.getBlock();
|
||||
Block facade = block.getFacade(accessor.getWorld(), pos.blockX, pos.blockY, pos.blockZ, accessor.getSide().ordinal());
|
||||
IFacade bundle = (IFacade) accessor.getBlock();
|
||||
Block facade = bundle.getFacade(accessor.getWorld(), pos.blockX, pos.blockY, pos.blockZ, accessor.getSide().ordinal());
|
||||
if(facade != accessor.getBlock()) {
|
||||
ItemStack ret = facade.getPickBlock(pos, new WailaWorldWrapper(accessor.getWorld()), pos.blockX, pos.blockY, pos.blockZ, accessor.getPlayer());
|
||||
return ret;
|
||||
|
||||
Reference in new issue
Block a user