mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
augh.
This commit is contained in:
parent
9eb4cbe6c9
commit
104e722db0
@ -67,7 +67,7 @@ public class TileEntityMachineStrandCaster extends TileEntityFoundryCastingBase
|
|||||||
if (this.amount >= this.getCapacity()) {
|
if (this.amount >= this.getCapacity()) {
|
||||||
//In case of overfill problems, spit out the excess as scrap
|
//In case of overfill problems, spit out the excess as scrap
|
||||||
if (amount > getCapacity()) {
|
if (amount > getCapacity()) {
|
||||||
ItemStack scrap = ItemScraps.create(new Mats.MaterialStack(type, amount));
|
ItemStack scrap = ItemScraps.create(new Mats.MaterialStack(type, Math.max(amount - getCapacity(), amount)));
|
||||||
EntityItem item = new EntityItem(worldObj, xCoord + 0.5, yCoord + 2, zCoord + 0.5, scrap);
|
EntityItem item = new EntityItem(worldObj, xCoord + 0.5, yCoord + 2, zCoord + 0.5, scrap);
|
||||||
worldObj.spawnEntityInWorld(item);
|
worldObj.spawnEntityInWorld(item);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user