From 70cf5d2beae9694c26852b0a7226872e0c30fa38 Mon Sep 17 00:00:00 2001 From: Nicholas Ignoffo Date: Sun, 26 Aug 2018 13:12:49 -0700 Subject: [PATCH] Low tier altars should not be able to fill high tier orbs --- src/main/java/WayofTime/bloodmagic/altar/BloodAltar.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/WayofTime/bloodmagic/altar/BloodAltar.java b/src/main/java/WayofTime/bloodmagic/altar/BloodAltar.java index 8df2775c..2f9b794f 100644 --- a/src/main/java/WayofTime/bloodmagic/altar/BloodAltar.java +++ b/src/main/java/WayofTime/bloodmagic/altar/BloodAltar.java @@ -197,8 +197,8 @@ public class BloodAltar implements IFluidHandler } } else if (input.getItem() instanceof IBloodOrb) { - this.isActive = true; - this.canBeFilled = true; + BloodOrb orb = ((IBloodOrb) input.getItem()).getOrb(input); + this.isActive = canBeFilled = orb != null && altarTier.ordinal() >= orb.getTier(); return; } }