Astrial Fruit is lost when the Ring of Seven Curses is wore after opening first end-city chest
janhous233 opened this issue · 1 comments
English is not my native language; please excuse typing errors.
I've posted my question in Chinese and English.
Problem Description:
When I wear the Ring of Seven Curses after opening the first end city chest, the astial fruit will not appear in the first end city chest I open after that.
问题描述:
当我在打开第一个末地城箱子后佩戴七咒之戒,天体果实将不会出现在我在此之后打开的第一个末地城箱子里
Version Information for minecraft and all installed mods:
版本信息:
- Minecraft: 1.20.1
- Forge: 47.3.5
- Caelus: forge-3.2.0+1.20.1
- Curios: forge-5.11.0+1.20.1
- EnigmaticLegacy: 2.30.1
- Patchouli: 1.20.1-84-FORGE
In detail, the game seeds and coordinates used for testing are as follows
详细的, 测试所使用的游戏种子和坐标如下
Seed: -7135716617475691255
Chest 1: -578 110 -919
Chest 2: -576 110 -917
A possible fix plan
Class: com.aizistral.enigmaticlegacy.objects.SpecialLootModifier
Line 88 ~ 94
from
if (!SuperpositionHandler.hasPersistentTag(player, "LootedFirstEndCityChest")) {
SuperpositionHandler.setPersistentBoolean(player, "LootedFirstEndCityChest", true);
if (SuperpositionHandler.isTheCursedOne(player)) {
generatedLoot.add(new ItemStack(EnigmaticItems.ASTRAL_FRUIT, 1));
}
}
to
if (!SuperpositionHandler.hasPersistentTag(player, "LootedFirstEndCityChest") && SuperpositionHandler.isTheCursedOne(player)) { // <-- Here
SuperpositionHandler.setPersistentBoolean(player, "LootedFirstEndCityChest", true);
generatedLoot.add(new ItemStack(EnigmaticItems.ASTRAL_FRUIT, 1));
}