1000 lines of code

This commit is contained in:
Boblet 2025-01-30 16:01:05 +01:00
parent 691ff5c1d5
commit d8ab0e7ecf
2 changed files with 3 additions and 1 deletions

View File

@ -3,3 +3,4 @@
## Fixed ## Fixed
* Fixed the CCGT's steam output breaking as soon as the steam buffer runs full * Fixed the CCGT's steam output breaking as soon as the steam buffer runs full
* Fixed crash caused by mobs holding belt-fed guns

View File

@ -58,6 +58,7 @@ public class MagazineBelt implements IMagazine<BulletConfig> {
@Override @Override
public int getAmount(ItemStack stack, IInventory inventory) { public int getAmount(ItemStack stack, IInventory inventory) {
if(inventory == null) return 1; // for EntityAIFireGun
BulletConfig first = this.getFirstConfig(stack, inventory); BulletConfig first = this.getFirstConfig(stack, inventory);
int count = 0; int count = 0;
for(int i = 0; i < inventory.getSizeInventory(); i++) { for(int i = 0; i < inventory.getSizeInventory(); i++) {