mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 10:55:17 +00:00
Fix sparks not transferring mana properly to mana-voided pools. Closes #2557
This commit is contained in:
1 parent
8d6e5c6c87
commit
d502c90b91
1 file changed
+6
-1
@@ -481,7 +481,12 @@ public class TilePool extends TileMod implements IManaPool, IKeyLocked, ISparkAt
|
||||
|
||||
@Override
|
||||
public int getAvailableSpaceForMana() {
|
||||
return Math.max(0, manaCap - getCurrentMana());
|
||||
int space = Math.max(0, manaCap - getCurrentMana());
|
||||
if(space > 0)
|
||||
return space;
|
||||
else if(world.getBlockState(pos.down()).getBlock() == ModBlocks.manaVoid)
|
||||
return manaCap;
|
||||
else return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user