mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 15:23:16 +00:00
JEI cleanup, pass 3
Strickter nullchecks, access variables though getters, not though public ones.
This commit is contained in:
1 parent
0021b34a31
commit
5f23ad4725
28 files changed
+250
-166
No files matched your search
@@ -14,7 +14,7 @@ import java.util.Arrays;
|
||||
|
||||
public class ChanceMachineRecipeWrapper implements IRecipeWrapper
|
||||
{
|
||||
public ChanceMachineRecipe recipe;
|
||||
private ChanceMachineRecipe recipe;
|
||||
|
||||
public ChanceMachineRecipeWrapper(ChanceMachineRecipe r)
|
||||
{
|
||||
@@ -40,4 +40,9 @@ public class ChanceMachineRecipeWrapper implements IRecipeWrapper
|
||||
fontRendererObj.drawString(Math.round(output.secondaryChance*100) + "%", 104, 41, 0x404040, false);
|
||||
}
|
||||
}
|
||||
|
||||
public ChanceMachineRecipe getRecipe()
|
||||
{
|
||||
return recipe;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user