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 void updateEntity() {
- boolean flag1 = false;
- if (!this.worldObj.isRemote) {
- if(this.worldObj.isDaytime()){
- flag1 = true;
- BlockEssenceOre.updateBlockState(this.worldObj.isDaytime(), this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }else{
- flag1 = false;
- BlockEssenceOre.updateBlockState(!this.worldObj.isDaytime(), this.worldObj, this.xCoord, this.yCoord, this.zCoord);
- }
- }
- if (flag1) {
- this.markDirty();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement