fix nature altar

This commit is contained in:
Ellpeck 2018-10-16 11:50:43 +02:00
parent 1f8431068c
commit af46854bc7

View file

@ -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);