mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-25 06:24:26 +00:00
Feature/refactoring (#79)
* Added some localization * Added some localization * Some refactoring
This commit is contained in:
1 parent
1ea7b62e5f
commit
618b291015
60 files changed
+261
-166
No files matched your search
@@ -13,7 +13,7 @@ import net.minecraft.item.ItemStack;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
class ToleranceSystem {
|
||||
public class ToleranceSystem {
|
||||
public String uid;
|
||||
public IChromosomeType chromosomeOrdinal;
|
||||
public ToleranceType type;
|
||||
@@ -30,7 +30,8 @@ class ToleranceSystem {
|
||||
IAlleleTolerance tolAllele = (IAlleleTolerance) genome.getActiveAllele(chromosomeOrdinal);
|
||||
Tolerance tol = Tolerance.get(tolAllele.getValue());
|
||||
float effect = type.getEffect(acclim);
|
||||
return (effect > 0.0f && tol.getBounds()[1] < 5) || (effect < 0.0f && tol.getBounds()[0] > -5);
|
||||
return (effect > 0.0f && tol.getBounds()[1] < 5)
|
||||
|| (effect < 0.0f && tol.getBounds()[0] > -5);
|
||||
}
|
||||
|
||||
public ItemStack alter(ItemStack stack, ItemStack acc) {
|
||||
|
||||
Reference in new issue
Block a user