Seed Analyser GUI won't Open
DorianGrayJr opened this issue ยท 6 comments
When trying to open the seed analyser GUI it won't open no matter what. I looked up for a version of InfinityLib as I saw that fixes the issue but is not available on the version I'm playing.
Mods and versions used
- Minecraft: 1.20.1 forge 47.3.0
- AgriCraft: 1.20.1-4.0.2-beta
- InfinityLib: not available for this version
I'm currently on single player. Also the pam harvestcraft doesn`t have texture after you get them after planting them
Can confirm the same issue. The logs contain an exception at this line due to data
being null
.
Adding to this. Came here specifically to report the same issues. Seed Analyzer also gets broken quite slowly in addition to the above. Also adding that the analyzer is completely bugged out and consumes seeds put into it, while duplicating the agricultural journal.
Can confirm this too, journal is duplicated but the duplicate is a ghost item and does vanish sometimes. Same with seeds although seeds do actually dupe sometimes.
The actual solution from looking it up is to replace the call to
With a call to
NetworkHooks.openScreen
.Here's a disgusting little fix. seems to work in the 10 seconds of testing I did.
public static final PlatformRegistry.Entry<MenuType<SeedAnalyzerMenu>> SEED_ANALYZER_MENU = MENUS.register("seed_analyzer",
() -> Platform.get().createMenuType((id, inv, data) -> new SeedAnalyzerMenu(id, inv, inv.player, GetLookingAtBlock(inv.player))));
public static BlockPos GetLookingAtBlock(Player player){
HitResult block = player.pick(20.0D, 0.0F, false);
if(block.getType() == HitResult.Type.BLOCK)
{
return ((BlockHitResult)block).getBlockPos();
}
return null;
}`