generated from tilera/1710mod
parent
3db4a140e3
commit
4a4798738e
|
@ -27,4 +27,6 @@ public interface ICrystal {
|
||||||
*/
|
*/
|
||||||
void harvestShard(EntityPlayer player);
|
void harvestShard(EntityPlayer player);
|
||||||
|
|
||||||
|
boolean canHarvest(EntityPlayer player);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -119,4 +119,10 @@ public abstract class MixinTileCrystal extends TileThaumcraft implements ICrysta
|
||||||
worldObj.spawnEntityInWorld(entity);
|
worldObj.spawnEntityInWorld(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canHarvest(EntityPlayer player) {
|
||||||
|
int md = this.worldObj.getBlockMetadata(this.xCoord, this.yCoord, this.zCoord);
|
||||||
|
return md != 6 && md != 9 && count > 1;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue