mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
1000 lines of code
This commit is contained in:
parent
691ff5c1d5
commit
d8ab0e7ecf
@ -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
|
||||||
@ -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++) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user