Fixed a bug with draedon fuel factories
This commit is contained in:
1 parent
21c6842c64
commit
43ea52eb08
1 file changed
+2
-1
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user