This commit is contained in:
70000hp 2024-01-18 18:10:35 -05:00
parent ab9a45689b
commit 801c2155c7

View File

@ -66,7 +66,7 @@ public class TileEntityMachineStrandCaster extends TileEntityFoundryCastingBase
if (this.amount >= this.getCapacity()) {
//In case of overfill problems, spit out the excess as scrap
if (amount > getCapacity()) {
ItemStack scrap = ItemScraps.create(new Mats.MaterialStack(type, Math.max(amount - getCapacity(), amount)));
ItemStack scrap = ItemScraps.create(new Mats.MaterialStack(type, Math.max(amount - getCapacity(), 0)));
EntityItem item = new EntityItem(worldObj, xCoord + 0.5, yCoord + 2, zCoord + 0.5, scrap);
worldObj.spawnEntityInWorld(item);
}