Fixed a bug with draedon fuel factories

This commit is contained in:
DominicKarma42 committed 2020-07-26 12:37:23 -05:00
1 parent 21c6842c64
commit 43ea52eb08
1 file changed
+2 -1
+2 -1
View File
@@ -31,8 +31,9 @@ namespace CalamityMod.TileEntities
}
Time++;
// Sometimes the item gets fucked up and it gets a maxStack of 0. Using it as a max can be unreliable as a result.
bool rightTimeToMakeCell = Time % 5 == 4 && Main.tileFrame[Main.tile[Position.X, Position.Y].type] == 43;
if (HeldItem.stack < HeldItem.maxStack && rightTimeToMakeCell)
if (HeldItem.stack < 999 && rightTimeToMakeCell)
{
HeldItem.stack++;
}