Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Item drops from non-main region with plugin that multiplies damage infrequently or never drops mob drops #6

Open
R00tB33rMan opened this issue Dec 11, 2023 · 2 comments

Comments

@R00tB33rMan
Copy link

No description provided.

@R00tB33rMan R00tB33rMan changed the title Item drops from non-main region with plugin that multiplies damage infrequently or never drops item Item drops from non-main region with plugin that multiplies damage infrequently or never drops mob drops Dec 11, 2023
@R00tB33rMan
Copy link
Author

R00tB33rMan commented Dec 11, 2023

Example warning:

[07:35:43 WARN]: [PyroAxe-Folia] Task #196 for PyroAxe-Folia v1.0.0 generated an exception
java.lang.NullPointerException: Cannot invoke "io.papermc.paper.threadedregions.ThreadedRegionizer$ThreadedRegion.getData()" because "target" is null
        at me.earthme.molia.pool.WorldDataPool.getDataOffTickThread(WorldDataPool.java:45) ~[molia-1.20.2.jar:git-Molia-"38ff6a5"]
        at me.earthme.molia.pool.WorldDataPool.getDataAnyThread(WorldDataPool.java:22) ~[molia-1.20.2.jar:git-Molia-"38ff6a5"]
        at net.minecraft.server.level.ServerLevel.addEntity(ServerLevel.java:1876) ~[?:?]
        at net.minecraft.server.level.ServerLevel.addFreshEntity(ServerLevel.java:1790) ~[?:?]
        at org.bukkit.craftbukkit.v1_20_R2.CraftWorld.dropItem(CraftWorld.java:714) ~[molia-1.20.2.jar:git-Molia-"38ff6a5"]
        at org.bukkit.craftbukkit.v1_20_R2.CraftWorld.dropItem(CraftWorld.java:700) ~[molia-1.20.2.jar:git-Molia-"38ff6a5"]
        at org.bukkit.craftbukkit.v1_20_R2.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:972) ~[molia-1.20.2.jar:git-Molia-"38ff6a5"]
        at net.minecraft.world.entity.LivingEntity.dropAllDeathLoot(LivingEntity.java:1852) ~[?:?]
        at net.minecraft.world.entity.LivingEntity.die(LivingEntity.java:1746) ~[?:?]
        at net.minecraft.world.entity.animal.IronGolem.die(IronGolem.java:319) ~[?:?]
        at net.minecraft.world.entity.LivingEntity.hurt(LivingEntity.java:1569) ~[?:?]
        at net.minecraft.world.entity.animal.IronGolem.hurt(IronGolem.java:215) ~[?:?]
        at org.bukkit.craftbukkit.v1_20_R2.entity.CraftLivingEntity.damage(CraftLivingEntity.java:380) ~[molia-1.20.2.jar:git-Molia-"38ff6a5"]
        at org.bukkit.craftbukkit.v1_20_R2.entity.CraftLivingEntity.damage(CraftLivingEntity.java:365) ~[molia-1.20.2.jar:git-Molia-"38ff6a5"]
        at com.ajmaacc.pyroaxefolia.PyroListener.lambda$onDamage$1(PyroListener.java:43) ~[PyroAxe-Folia-1.0.0.jar:?]
        at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[molia-1.20.2.jar:git-Molia-"38ff6a5"]
        at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:481) ~[molia-1.20.2.jar:git-Molia-"38ff6a5"]
        at me.earthme.molia.thread.CraftSchedulerRunner.doSchedulerTask(CraftSchedulerRunner.java:88) ~[molia-1.20.2.jar:git-Molia-"38ff6a5"]
        at me.earthme.molia.thread.CraftSchedulerRunner.run(CraftSchedulerRunner.java:55) ~[molia-1.20.2.jar:git-Molia-"38ff6a5"]

We managed to make the warning disappear within the plugin but this issue still recurs.

@R00tB33rMan
Copy link
Author

Believe this is also correlated, which breaks ExcellentCrates's locations:

[11:07:16 WARN]: [ExcellentCrates] Task #43 for ExcellentCrates v5.0.0 generated an exception
java.lang.NullPointerException: Cannot invoke "io.papermc.paper.threadedregions.ThreadedRegionizer$ThreadedRegion.getData()" because "target" is null
        at me.earthme.molia.pool.WorldDataPool.getDataOffTickThread(WorldDataPool.java:45) ~[molia-1.20.2.jar:git-Molia-"38ff6a5"]
        at me.earthme.molia.pool.WorldDataPool.getDataAnyThread(WorldDataPool.java:27) ~[molia-1.20.2.jar:git-Molia-"38ff6a5"]
        at net.minecraft.world.level.Level.getBlockState(Level.java:1214) ~[?:?]
        at org.bukkit.craftbukkit.v1_20_R2.block.CraftBlock.getNMS(CraftBlock.java:83) ~[molia-1.20.2.jar:git-Molia-"38ff6a5"]
        at org.bukkit.craftbukkit.v1_20_R2.block.CraftBlock.isEmpty(CraftBlock.java:482) ~[molia-1.20.2.jar:git-Molia-"38ff6a5"]
        at su.nightexpress.excellentcrates.crate.impl.Crate.lambda$loadLocations$0(Crate.java:157) ~[ExcellentCrates-5.0.0.jar:?]
        at java.util.Collection.removeIf(Collection.java:583) ~[?:?]
        at su.nightexpress.excellentcrates.crate.impl.Crate.loadLocations(Crate.java:157) ~[ExcellentCrates-5.0.0.jar:?]
        at java.util.HashMap$Values.forEach(HashMap.java:1073) ~[?:?]
        at su.nightexpress.excellentcrates.crate.CrateManager.lambda$onLoad$0(CrateManager.java:103) ~[ExcellentCrates-5.0.0.jar:?]
        at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftTask.run(CraftTask.java:103) ~[molia-1.20.2.jar:git-Molia-"38ff6a5"]
        at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:481) ~[molia-1.20.2.jar:git-Molia-"38ff6a5"]
        at me.earthme.molia.thread.CraftSchedulerRunner.doSchedulerTask(CraftSchedulerRunner.java:88) ~[molia-1.20.2.jar:git-Molia-"38ff6a5"]
        at me.earthme.molia.thread.CraftSchedulerRunner.run(CraftSchedulerRunner.java:55) ~[molia-1.20.2.jar:git-Molia-"38ff6a5"]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant