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

[BUG] Walking into non-generated chunks causes console error #26

Open
Happy-Hop7 opened this issue Dec 21, 2024 · 0 comments
Open

[BUG] Walking into non-generated chunks causes console error #26

Happy-Hop7 opened this issue Dec 21, 2024 · 0 comments
Labels
bug Something isn't working Can't Reproduce Use this label for issues that cannot be reproduced based on the information provided. More Info Needed Use this label when additional details or clarification are required from the issue reporter.

Comments

@Happy-Hop7
Copy link
Owner

Description

When walking into non-generated chunks in the world, a console error is thrown related to the BlockGrowEvent.
The issue appears intermittently but seems to occur specifically in non-generated areas.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Start the server with the RealisticPlantGrowth plugin.
  2. Walk into previously non-generated chunks.
  3. Observe the console for errors.

Expected Behavior

Walking into non-generated chunks should not trigger any console errors.

Plugin and Server Information

  • Plugin Version: BETA-0.9.2
  • Minecraft Server Version: 1.21.4
  • Server Software: Paper

Error Logs

If there are any error logs in the console, please attach them or paste them below:

[00:18:02 ERROR]: Could not pass event BlockGrowEvent to RealisticPlantGrowth vBETA-0.9.2
java.lang.IllegalArgumentException: GrowthModifier couldn't be obtained!
        at RealisticPlantGrowth-BETA-0.9.2 (1).jar/de.nightevolution.realisticplantgrowth.utils.plant.Modifier.initModifier(Modifier.java:118) ~[RealisticPlantGrowth-BETA-0.9.2 (1).jar:?]
        at RealisticPlantGrowth-BETA-0.9.2 (1).jar/de.nightevolution.realisticplantgrowth.utils.plant.Modifier.<init>(Modifier.java:67) ~[RealisticPlantGrowth-BETA-0.9.2 (1).jar:?]
        at RealisticPlantGrowth-BETA-0.9.2 (1).jar/de.nightevolution.realisticplantgrowth.utils.plant.Surrounding.getModifier(Surrounding.java:168) ~[RealisticPlantGrowth-BETA-0.9.2 (1).jar:?]
        at RealisticPlantGrowth-BETA-0.9.2 (1).jar/de.nightevolution.realisticplantgrowth.utils.plant.Surrounding.<init>(Surrounding.java:104) ~[RealisticPlantGrowth-BETA-0.9.2 (1).jar:?]
        at RealisticPlantGrowth-BETA-0.9.2 (1).jar/de.nightevolution.realisticplantgrowth.utils.plant.SpecialBlockSearch.surroundingOf(SpecialBlockSearch.java:138) ~[RealisticPlantGrowth-BETA-0.9.2 (1).jar:?]
        at RealisticPlantGrowth-BETA-0.9.2 (1).jar/de.nightevolution.realisticplantgrowth.utils.plant.SpecialBlockSearch.surroundingOf(SpecialBlockSearch.java:154) ~[RealisticPlantGrowth-BETA-0.9.2 (1).jar:?]
        at RealisticPlantGrowth-BETA-0.9.2 (1).jar/de.nightevolution.realisticplantgrowth.listeners.PlantGrowthListener.processEvent(PlantGrowthListener.java:114) ~[RealisticPlantGrowth-BETA-0.9.2 (1).jar:?]
        at RealisticPlantGrowth-BETA-0.9.2 (1).jar/de.nightevolution.realisticplantgrowth.listeners.plant.BlockGrowListener.onPlantGrow(BlockGrowListener.java:80) ~[RealisticPlantGrowth-BETA-0.9.2 (1).jar:?]
        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor84.execute(Unknown Source) ~[?:?]
        at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:1.21.1-2329-803bf62]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:630) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(CraftEventFactory.java:1337) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
        at net.minecraft.world.level.block.CropBlock.randomTick(CropBlock.java:104) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
        at net.minecraft.world.level.block.BeetrootBlock.randomTick(BeetrootBlock.java:57) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
        at net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase.randomTick(BlockBehaviour.java:1226) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
        at net.minecraft.server.level.ServerLevel.optimiseRandomTick(ServerLevel.java:900) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
        at net.minecraft.server.level.ServerLevel.tickChunk(ServerLevel.java:971) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
        at net.minecraft.server.level.ServerChunkCache.tickChunks(ServerChunkCache.java:523) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
        at net.minecraft.server.level.ServerChunkCache.tick(ServerChunkCache.java:411) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
        at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:710) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1851) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:513) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1642) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1342) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:333) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
        at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

Acknowledgments

Thanks to @Artugr18 for reporting this issue!

@Happy-Hop7 Happy-Hop7 added bug Something isn't working Can't Reproduce Use this label for issues that cannot be reproduced based on the information provided. More Info Needed Use this label when additional details or clarification are required from the issue reporter. labels Dec 21, 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 Can't Reproduce Use this label for issues that cannot be reproduced based on the information provided. More Info Needed Use this label when additional details or clarification are required from the issue reporter.
Projects
None yet
Development

No branches or pull requests

1 participant