mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 19:05:16 +00:00
Giant annoying message to see where this happens
This commit is contained in:
1 parent
ac72a5a660
commit
08fa70e25c
1 file changed
+5
@@ -35,6 +35,7 @@ import net.minecraft.util.EnumFacing;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.fml.common.FMLLog;
|
||||
import net.minecraftforge.fml.common.ObfuscationReflectionHelper;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
@@ -120,6 +121,10 @@ public class TilePool extends TileMod implements IManaPool, IDyablePool, IKeyLoc
|
||||
@Override
|
||||
public void recieveMana(int mana) {
|
||||
this.mana = Math.max(0, Math.min(getCurrentMana() + mana, manaCap));
|
||||
if (worldObj.isRemote) {
|
||||
FMLLog.severe("[Botania]: CLIENT POOL RECEIVE MANA");
|
||||
FMLLog.severe("[Botania]: WORLD: %s, POS: %s", worldObj, pos);
|
||||
}
|
||||
worldObj.updateComparatorOutputLevel(pos, worldObj.getBlockState(pos).getBlock());
|
||||
markDispatchable();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user