parent
d007865b58
commit
970c22bdb5
2 changed files with 8 additions and 0 deletions
|
@ -18,6 +18,7 @@ import net.minecraft.client.gui.FontRenderer;
|
|||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.client.renderer.RenderHelper;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
|
@ -123,6 +124,11 @@ public abstract class GuiBuildCraft extends GuiContainer {
|
|||
return;
|
||||
}
|
||||
IIcon icon = fluid.getFluid().getIcon(fluid);
|
||||
|
||||
if (icon == null) {
|
||||
icon = ((TextureMap) Minecraft.getMinecraft().getTextureManager().getTexture(TextureMap.locationBlocksTexture)).getAtlasSprite("missingno");
|
||||
}
|
||||
|
||||
mc.renderEngine.bindTexture(TextureMap.locationBlocksTexture);
|
||||
RenderUtils.setGLColorFromInt(fluid.getFluid().getColor(fluid));
|
||||
int fullX = width / 16;
|
||||
|
|
|
@ -112,6 +112,8 @@ public class BlockMiner {
|
|||
Block.getIdFromBlock(block)
|
||||
+ (meta << 12));
|
||||
|
||||
Utils.preDestroyBlock(world, x, y, z);
|
||||
|
||||
if (block.hasTileEntity(meta)) {
|
||||
world.removeTileEntity(x, y, z);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue