mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-28 07:55:45 +00:00
All basic tiles
This commit is contained in:
1 parent
59232209a4
commit
ef2ab91b37
45 files changed
+342
-419
No files matched your search
@@ -26,8 +26,6 @@ import net.minecraftforge.fluids.FluidRegistry;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import vazkii.botania.client.core.handler.ClientTickHandler;
|
||||
import vazkii.botania.client.lib.LibResources;
|
||||
import vazkii.botania.client.model.ModelAltar;
|
||||
import vazkii.botania.common.block.ModBlocks;
|
||||
import vazkii.botania.common.block.tile.TileAltar;
|
||||
|
||||
@@ -57,7 +55,7 @@ public class RenderTileAltar extends TileEntitySpecialRenderer<TileAltar> {
|
||||
if(water) {
|
||||
int petals = 0;
|
||||
for(int i = 0; i < altar.getSizeInventory(); i++)
|
||||
if(altar.getStackInSlot(i) != null)
|
||||
if(altar.getItemHandler().getStackInSlot(i) != null)
|
||||
petals++;
|
||||
else break;
|
||||
|
||||
@@ -97,7 +95,7 @@ public class RenderTileAltar extends TileEntitySpecialRenderer<TileAltar> {
|
||||
|
||||
GlStateManager.color(1F, 1F, 1F, 1F);
|
||||
|
||||
ItemStack stack = altar.getStackInSlot(i);
|
||||
ItemStack stack = altar.getItemHandler().getStackInSlot(i);
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationBlocksTexture);
|
||||
Minecraft.getMinecraft().getRenderItem().renderItem(stack, ItemCameraTransforms.TransformType.GROUND);
|
||||
GlStateManager.popMatrix();
|
||||
|
||||
Reference in new issue
Block a user