BentoBoxWorld / Greenhouses

BentoBox Add-on to enable personal biomes in a glass greenhouse
Eclipse Public License 2.0
13 stars 9 forks source link

Error with setRoofHopperLocation #75

Closed VozikCZE closed 3 years ago

VozikCZE commented 3 years ago

Description

Describe the bug

Getting error in console sometimes. I can't find reason why I getting it.

Maybe when there are greenhouses without hopper and its trying to plant?


java.lang.NullPointerException: null
    at world.bentobox.greenhouses.data.Greenhouse.setRoofHopperLocation(Greenhouse.java:160) ~[?:?]
    at world.bentobox.greenhouses.managers.EcoSystemManager.getHopper(EcoSystemManager.java:228) ~[?:?]
    at world.bentobox.greenhouses.managers.EcoSystemManager.getBoneMeal(EcoSystemManager.java:213) ~[?:?]
    at world.bentobox.greenhouses.managers.EcoSystemManager.growPlants(EcoSystemManager.java:158) ~[?:?]
    at java.util.ArrayList.forEach(ArrayList.java:1259) ~[?:1.8.0_261]
    at world.bentobox.greenhouses.managers.EcoSystemManager.lambda$setup$0(EcoSystemManager.java:51) ~[?:?]
    at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:99) ~[patched_1.16.5.jar:git-Yatopia-"0c43fe2"]
    at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[patched_1.16.5.jar:git-Yatopia-"0c43fe2"]
    at net.minecraft.server.v1_16_R3.MinecraftServer.b(MinecraftServer.java:1372) ~[patched_1.16.5.jar:git-Yatopia-"0c43fe2"]
    at net.minecraft.server.v1_16_R3.DedicatedServer.b(DedicatedServer.java:397) ~[patched_1.16.5.jar:git-Yatopia-"0c43fe2"]
    at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1281) ~[patched_1.16.5.jar:git-Yatopia-"0c43fe2"]
    at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1012) ~[patched_1.16.5.jar:git-Yatopia-"0c43fe2"]
    at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:175) ~[patched_1.16.5.jar:git-Yatopia-"0c43fe2"]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_261]```
tastybento commented 3 years ago

/bbox version please. I need to know what versions are you using.

VozikCZE commented 3 years ago

Oh, sorry, I forgot.


[13:02:01 INFO]: Verze BentoBox: 1.15.5
[13:02:01 INFO]: Databáze: MYSQL
[13:02:01 INFO]: Načtené herní světy:
[13:02:01 INFO]: bskyblock_world (BSkyBlock): Svět, Nether, End
[13:02:01 INFO]: Načtené doplňky:
[13:02:01 INFO]: BSkyBlock 1.14.3 (ENABLED)
[13:02:01 INFO]: Chat 1.1.2 (ENABLED)
[13:02:01 INFO]: EpicHooks 1.1.0-SNAPSHOT-b5 (ENABLED)
[13:02:01 INFO]: Greenhouses 1.5.1-SNAPSHOT-b284 (ENABLED)
[13:02:01 INFO]: Level 2.5.0 (ENABLED)
[13:02:01 INFO]: Limits 1.15.0 (ENABLED)
[13:02:01 INFO]: Warps 1.9.7 (ENABLED)```