mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 11:53:29 +01:00
fix nature altar
This commit is contained in:
parent
1f8431068c
commit
af46854bc7
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ public class TileEntityNatureAltar extends TileEntityImpl implements ITickable,
|
||||||
if (!this.cachedProviders.isEmpty()) {
|
if (!this.cachedProviders.isEmpty()) {
|
||||||
int index = rand.nextInt(this.cachedProviders.size());
|
int index = rand.nextInt(this.cachedProviders.size());
|
||||||
IAuraContainerProvider provider = this.cachedProviders.get(index);
|
IAuraContainerProvider provider = this.cachedProviders.get(index);
|
||||||
if (((TileEntity) provider).isInvalid()) {
|
if (!((TileEntity) provider).isInvalid()) {
|
||||||
int stored = this.container.storeAura(provider.container().drainAura(5, true), false);
|
int stored = this.container.storeAura(provider.container().drainAura(5, true), false);
|
||||||
if (stored > 0) {
|
if (stored > 0) {
|
||||||
provider.container().drainAura(stored, false);
|
provider.container().drainAura(stored, false);
|
||||||
|
|
Loading…
Reference in a new issue