mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-24 22:14:45 +00:00
More nulls!
This commit is contained in:
5 files changed
+6
-6
No files matched your search
@@ -31,7 +31,7 @@ public class LexiconEntry implements Comparable<LexiconEntry> {
|
||||
|
||||
public final List<LexiconPage> pages = new ArrayList<>();
|
||||
private boolean priority = false;
|
||||
private ItemStack icon = null;
|
||||
private ItemStack icon = ItemStack.EMPTY;
|
||||
|
||||
private final List<ItemStack> extraDisplayedRecipes = new ArrayList<>();
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ public final class TooltipAdditionDisplayHandler {
|
||||
EntryData data = LexiconRecipeMappings.getDataForStack(stack);
|
||||
if(data != null) {
|
||||
int lexSlot = -1;
|
||||
ItemStack lexiconStack = null;
|
||||
ItemStack lexiconStack = ItemStack.EMPTY;
|
||||
|
||||
for(int i = 0; i < InventoryPlayer.getHotbarSize(); i++) {
|
||||
ItemStack stackAt = mc.player.inventory.getStackInSlot(i);
|
||||
|
||||
@@ -532,7 +532,7 @@ public final class LexiconData {
|
||||
functionalIntro
|
||||
.setPriority().setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"),
|
||||
new PageText("3"), new PageCraftingRecipe("4", ModCraftingRecipes.recipeRedstoneRoot))
|
||||
.setIcon(null);
|
||||
.setIcon(ItemStack.EMPTY);
|
||||
;
|
||||
|
||||
flowerShrinking = new BasicLexiconEntry(LibLexicon.FFLOWER_SHRINKING, categoryFunctionalFlowers);
|
||||
|
||||
@@ -88,7 +88,7 @@ public class PageRecipe extends LexiconPage {
|
||||
vazkii.botania.client.core.helper.RenderHelper.renderTooltipGreen(mx, my + tooltipY, Arrays.asList(TextFormatting.AQUA + I18n.format("botaniamisc.craftingContainer"), tooltipContainerStack.getDisplayName()));
|
||||
}
|
||||
|
||||
tooltipStack = tooltipContainerStack = null;
|
||||
tooltipStack = tooltipContainerStack = ItemStack.EMPTY;
|
||||
tooltipEntry = false;
|
||||
GlStateManager.disableBlend();
|
||||
mouseDownLastTick = Mouse.isButtonDown(0);
|
||||
|
||||
@@ -104,14 +104,14 @@ public final class SkyblockWorldEvents {
|
||||
@SubscribeEvent
|
||||
public static void onDrops(BlockEvent.HarvestDropsEvent event) {
|
||||
if(WorldTypeSkyblock.isWorldSkyblock(event.getWorld()) && event.getState().getBlock() == Blocks.TALLGRASS) {
|
||||
ItemStack stackToRemove = null;
|
||||
ItemStack stackToRemove = ItemStack.EMPTY;
|
||||
for(ItemStack stack : event.getDrops())
|
||||
if(stack.getItem() == Items.WHEAT_SEEDS && event.getWorld().rand.nextInt(4) == 0) {
|
||||
stackToRemove = stack;
|
||||
break;
|
||||
}
|
||||
|
||||
if(stackToRemove != null) {
|
||||
if(!stackToRemove.isEmpty()) {
|
||||
event.getDrops().remove(stackToRemove);
|
||||
event.getDrops().add(new ItemStack(event.getWorld().rand.nextBoolean() ? Items.PUMPKIN_SEEDS : Items.MELON_SEEDS));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user