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

@ -2,4 +2,5 @@
* Blast doors will now pulverize any block that gets in their way during closing
## 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
public int getAmount(ItemStack stack, IInventory inventory) {
if(inventory == null) return 1; // for EntityAIFireGun
BulletConfig first = this.getFirstConfig(stack, inventory);
int count = 0;
for(int i = 0; i < inventory.getSizeInventory(); i++) {