mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-16 10:34:40 +00:00
Fixed an exploit with the Gourmaryllis where more than one can eat a single item at once, producing much more mana than intended. Closes #626
This commit is contained in:
1 parent
2df18e8404
commit
58d6868be0
1 file changed
+1
-1
+1
-1
@@ -44,7 +44,7 @@ public class SubTileGourmaryllis extends SubTileGenerating {
|
||||
List<EntityItem> items = supertile.getWorldObj().getEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getBoundingBox(supertile.xCoord - range, supertile.yCoord - range, supertile.zCoord - range, supertile.xCoord + range + 1, supertile.yCoord + range + 1, supertile.zCoord + range + 1));
|
||||
for(EntityItem item : items) {
|
||||
ItemStack stack = item.getEntityItem();
|
||||
if(stack != null && stack.getItem() instanceof ItemFood) {
|
||||
if(stack != null && stack.getItem() instanceof ItemFood && !item.isDead) {
|
||||
if(cooldown == 0) {
|
||||
int val = ((ItemFood) stack.getItem()).func_150905_g(stack);
|
||||
storedMana = val * val * 64;
|
||||
|
||||
Reference in new issue
Block a user