Iron Jetpacks

Iron Jetpacks

49M Downloads

ELITE and ULTIMATE Coils

Tomatoh opened this issue ยท 0 comments

commented

I do not see a use for these should you perhaps change

public Item getCoilForTier(int tier) in src/main/java/com/blakebr0/ironjetpacks/registry/jetpackregistry.java

from

public Item getCoilForTier(int tier) {
	return this.tiers.indexOf(tier) >= this.tiers.size() / 2 ? ModItems.ADVANCED_COIL.get() : ModItems.BASIC_COIL.get();
}

to

public Item getCoilForTier(int tier) {
	if this.tiers.indexOf(tier) == 3 {
		return ModItems.ADVANCED_COIL.get();
	}
	else if this.tiers.indexOf(tier) == 4  {
		return ModItems.ELITE_COIL.get();	
	}
	else if this.tiers.indexOf(tier) == 5 {
		return ModItems.ULTIMATE_COIL.get();	
	}
	else {
		return ModItems.BASIC_COIL.get();	
	}
}