Fix gourmaryllis spamming packets, closes #2133. They also now give an auditory cue when they are ready to accept another piece of food

This commit is contained in:
Vincent Lee committed 2017-01-16 14:13:20 -06:00
1 parent 66420044a7
commit 6d85ef225b
1 file changed
+3 -1
@@ -19,6 +19,7 @@ import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumParticleTypes;
import net.minecraft.util.SoundCategory;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.world.WorldServer;
import vazkii.botania.api.lexicon.LexiconEntry;
@@ -44,9 +45,10 @@ public class SubTileGourmaryllis extends SubTileGenerating {
if(cooldown > -1)
cooldown--;
if(cooldown == 0) {
if(cooldown == 0 && storedMana != 0) {
mana = Math.min(getMaxMana(), mana + storedMana);
storedMana = 0;
getWorld().playSound(null, supertile.getPos(), SoundEvents.ENTITY_PLAYER_BURP, SoundCategory.BLOCKS, 1, 1);
sync();
}