Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

夹杂配置文件编译模组会报错,但是正常游玩却不会(?) #4

Open
gengyoubo opened this issue Oct 28, 2024 · 6 comments
Assignees
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@gengyoubo
Copy link
Collaborator

debug.log
crash-2024-10-28_09.56.34-client.txt

@gengyoubo gengyoubo added bug Something isn't working invalid This doesn't seem right wontfix This will not be worked on labels Oct 28, 2024
@gengyoubo
Copy link
Collaborator Author

当前只知道问题出在配置文档。

@gengyoubo gengyoubo pinned this issue Oct 28, 2024
@gengyoubo
Copy link
Collaborator Author

@gengyoubo
Copy link
Collaborator Author

gengyoubo commented Oct 28, 2024

原因在TinkersInnovationWorldGen.java里

@gengyoubo
Copy link
Collaborator Author

如果启用这两行代码就会发出报错
public static RegistryObject<ConfiguredFeature<OreConfiguration, Feature>> VOID_CRYSTAL_ORE = CONFIGURED_FEATURES.registerSupplier("void_crystal_ore", () -> Feature.ORE, () -> new OreConfiguration(voiReplace.get(), TinkersInnovationConfig.COMMON.voidcrystalOre.getSize()));
public static RegistryObject placedVoidcrystalOre = PLACED_FEATURES.register("void_crystal_ore", VOID_CRYSTAL_ORE, CountPlacement.of(TinkersInnovationConfig.COMMON.voidcrystalOre.getCount()), InSquarePlacement.spread(), BiomeFilter.biome(), HeightRangePlacement.uniform(VerticalAnchor.absolute(TinkersInnovationConfig.COMMON.voidcrystalOre.getMinY()), VerticalAnchor.absolute(TinkersInnovationConfig.COMMON.voidcrystalOre.getMaxY())));

@gengyoubo
Copy link
Collaborator Author

配置文件本身应该是没有问题的

@gengyoubo
Copy link
Collaborator Author

80fc6bb

@gengyoubo gengyoubo removed the wontfix This will not be worked on label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants