Compare commits

..
Author SHA1 Message Date
Dream Master 483aff076c update 2024-08-11 18:25:50 +07:00
Dream Master a2b81b86c6 Merge remote-tracking branch 'origin/eggs' into dev
# Conflicts:
#	dependencies.gradle
2024-08-11 18:24:54 +07:00
glowredman f337182332 Compare HP version 2024-08-10 16:52:11 +02:00
Dream Master 6bc98253e2 update 2024-08-08 12:20:48 +07:00
Dream Master 0f65cf8069 Merge remote-tracking branch 'origin/eggs' into dev 2024-08-08 12:19:10 +07:00
Martin Robertz 87988e69eb Merge branch 'master' into more_qol 2024-08-08 12:17:09 +07:00
glowredman f2d6b52c90 Add min HP version
NOTE: FML only considers this restriction if HP is present, this doesn't turn HP into a hard-dep!
2024-08-07 21:44:44 +02:00
slprime 89bf12611c fix bookmark group with groupIds bigger than 127 2024-08-06 08:24:33 +03:00
slprime 3b3227b09d fix hover crash to unnamed item 2024-08-05 19:34:59 +03:00
slprime 83696ca9ae fix tooltips 2024-08-04 16:46:34 +03:00
slprime e3be08c970 ItemZoom, hotkeys & more tooltips 2024-08-04 13:02:51 +03:00
glowredman 6f0a26c74b Add Snowman/Iron Golem Spawn Eggs conditionally 2024-07-30 22:28:18 +02:00
2 changed files with 11 additions and 1 deletions

No files matched your search

+1
View File
@@ -2,5 +2,6 @@
dependencies {
api('com.github.GTNewHorizons:CodeChickenCore:1.3.6:dev')
compileOnly('com.github.GTNewHorizons:Hodgepodge:2.5.45-pre:dev') // TODO: change to proper tag
shadowImplementation('org.apache.commons:commons-csv:1.10.0')
}
@@ -39,6 +39,7 @@ import net.minecraftforge.common.IShearable;
import net.minecraftforge.oredict.OreDictionary;
import com.google.common.collect.ArrayListMultimap;
import com.mitchej123.hodgepodge.config.TweaksConfig;
import codechicken.core.featurehack.GameDataManipulator;
import codechicken.nei.InfiniteStackSizeHandler;
@@ -64,9 +65,11 @@ import codechicken.nei.search.ModNameFilter;
import codechicken.nei.search.OreDictionaryFilter;
import codechicken.nei.search.TooltipFilter;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.ModContainer;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.GameRegistry.UniqueIdentifier;
import cpw.mods.fml.common.versioning.DefaultArtifactVersion;
/**
* This is an internal class for storing information about items, to be accessed by the API
@@ -211,7 +214,7 @@ public class ItemInfo {
public String[] dump(Block block, int id, String name) {
final Item item = Item.getItemFromBlock(block);
return new String[] { name, Integer.toString(id), Boolean.toString(item != null),
ItemInfo.itemOwners.get(block), block.getClass().getCanonicalName(),
ItemInfo.itemOwners.get(item), block.getClass().getCanonicalName(),
item != null ? EnumChatFormatting.getTextWithoutFormattingCodes(
GuiContainerManager.itemDisplayNameShort(new ItemStack(item))) : "null" };
}
@@ -458,6 +461,12 @@ public class ItemInfo {
}
private static void addSpawnEggs() {
if (Loader.isModLoaded("hodgepodge")
&& Loader.instance().getIndexedModList().get("hodgepodge").getProcessedVersion()
.compareTo(new DefaultArtifactVersion("2.5.44")) >= 0
&& TweaksConfig.addModEntityStats) {
return;
}
addEntityEgg(EntitySnowman.class, 0xEEFFFF, 0xffa221);
addEntityEgg(EntityIronGolem.class, 0xC5C2C1, 0xffe1cc);
}