Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.mightydanp.eot.inventory;
- import com.mightydanp.eot.block.BlockEssenceOre;
- import net.minecraft.tileentity.TileEntity;
- public class TileEntityEssenceOre extends TileEntity {
- public boolean isItDaytime;
- public void updateEntity() {
- boolean flag = isItDaytime == false;
- boolean flag1 = false;
- if (this.worldObj.isRemote) {
- if (this.worldObj.isDaytime()){
- flag1 = false;
- BlockEssenceOre.updateBlockTexture(this.isItDaytime == false, this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }
- }
- if (this.worldObj.isRemote) {
- if (!this.worldObj.isDaytime()){
- flag1 = true;
- BlockEssenceOre.updateBlockTexture(this.isItDaytime == true, this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement