mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-28 07:56:01 +00:00
Stop suppressing exceptions that may be important
This commit is contained in:
1 parent
163abc377e
commit
7c048de845
33 files changed
+111
-186
No files matched your search
@@ -7,6 +7,7 @@ import binnie.craftgui.core.IWidget;
|
||||
import binnie.craftgui.core.geometry.IArea;
|
||||
import binnie.craftgui.core.geometry.IPoint;
|
||||
import binnie.craftgui.minecraft.control.ControlItemDisplay;
|
||||
import com.google.common.base.Throwables;
|
||||
import forestry.api.arboriculture.EnumTreeChromosome;
|
||||
import forestry.api.arboriculture.IAlleleFruit;
|
||||
import forestry.api.arboriculture.ITree;
|
||||
@@ -48,7 +49,7 @@ public class AnalystPageFruit extends AnalystPageProduce {
|
||||
Collections.addAll(products, (ItemStack[]) f.get(pod));
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw Throwables.propagate(e);
|
||||
}
|
||||
if (products.size() > 0) {
|
||||
new ControlTextCentered(this, y, "Natural Fruit").setColour(this.getColour());
|
||||
@@ -117,6 +118,7 @@ public class AnalystPageFruit extends AnalystPageProduce {
|
||||
Collections.addAll(stacks, (ItemStack[]) field.get(pod2));
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
throw Throwables.propagate(ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ import binnie.craftgui.minecraft.control.ControlSlot;
|
||||
import binnie.craftgui.resource.minecraft.CraftGUITexture;
|
||||
import binnie.craftgui.window.Panel;
|
||||
import binnie.genetics.Genetics;
|
||||
import binnie.genetics.core.GeneticsGUI;
|
||||
import binnie.genetics.item.GeneticsItems;
|
||||
import binnie.genetics.machine.ModuleMachine;
|
||||
import binnie.genetics.machine.analyser.Analyser;
|
||||
@@ -62,6 +63,10 @@ public class WindowAnalyst extends Window {
|
||||
IIndividual current;
|
||||
BreedingSystem currentSystem;
|
||||
|
||||
public static GeneticsGUI.WindowFactory create(final boolean database, final boolean master) {
|
||||
return (player, inventory, side) -> new WindowAnalyst(player, inventory, side, database, master);
|
||||
}
|
||||
|
||||
public WindowAnalyst(final EntityPlayer player, final IInventory inventory, final Side side, final boolean database, final boolean master) {
|
||||
super(312.0f, 230.0f, player, inventory, side);
|
||||
this.baseWidget = null;
|
||||
|
||||
Reference in new issue
Block a user