From 117ca787fe0f1ceb90ae5be84ded35a7496b89ec Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 17 Nov 2018 12:27:28 +0100 Subject: [PATCH] changed a quirk to aura and added some info on its inner workings to the book --- src/main/java/de/ellpeck/naturesaura/InternalHooks.java | 4 ++-- .../de/ellpeck/naturesaura/api/aura/chunk/IAuraChunk.java | 6 ++++-- .../ellpeck/naturesaura/chunk/effect/MigrationEffect.java | 6 +----- .../patchouli_books/book/en_us/entries/intro/aura.json | 8 ++++++++ 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/main/java/de/ellpeck/naturesaura/InternalHooks.java b/src/main/java/de/ellpeck/naturesaura/InternalHooks.java index f478dfdf..0bad80e4 100644 --- a/src/main/java/de/ellpeck/naturesaura/InternalHooks.java +++ b/src/main/java/de/ellpeck/naturesaura/InternalHooks.java @@ -100,7 +100,7 @@ public class InternalHooks implements NaturesAuraAPI.IInternalHooks { } }); BlockPos lowest = lowestSpot.getValue(); - if (lowest == null) + if (lowest == null || lowestAmount.intValue() >= 0) lowest = defaultSpot; return lowest; } @@ -117,7 +117,7 @@ public class InternalHooks implements NaturesAuraAPI.IInternalHooks { } }); BlockPos highest = highestSpot.getValue(); - if (highest == null) + if (highest == null || highestAmount.intValue() <= 0) highest = defaultSpot; return highest; } diff --git a/src/main/java/de/ellpeck/naturesaura/api/aura/chunk/IAuraChunk.java b/src/main/java/de/ellpeck/naturesaura/api/aura/chunk/IAuraChunk.java index a91b9b59..4fd335a2 100644 --- a/src/main/java/de/ellpeck/naturesaura/api/aura/chunk/IAuraChunk.java +++ b/src/main/java/de/ellpeck/naturesaura/api/aura/chunk/IAuraChunk.java @@ -82,7 +82,8 @@ public interface IAuraChunk extends ICapabilityProvider, INBTSerializable