mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 10:55:17 +00:00
Merge pull request #2701 from Hubry/creator-modid
Implement getCreatorModId on the flower item
This commit is contained in:
1 file changed
+7
-3
@@ -104,10 +104,14 @@ public class ItemBlockSpecialFlower extends ItemBlockMod implements IRecipeKeyPr
|
||||
if(!refLocalized.equals(refUnlocalized))
|
||||
stacks.add(TextFormatting.ITALIC + refLocalized);
|
||||
}
|
||||
}
|
||||
|
||||
String mod = BotaniaAPI.subTileMods.get(type);
|
||||
if(mod != null && !mod.equals(LibMisc.MOD_ID))
|
||||
stacks.add(TextFormatting.ITALIC + "[" + mod + "]");
|
||||
@Override
|
||||
public String getCreatorModId(ItemStack itemStack) {
|
||||
String mod = BotaniaAPI.subTileMods.get(getType(itemStack));
|
||||
if(mod != null)
|
||||
return mod;
|
||||
return LibMisc.MOD_ID;
|
||||
}
|
||||
|
||||
public static String getType(ItemStack stack) {
|
||||
|
||||
Reference in new issue
Block a user