-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Ensure conditions declared on an item like so:
- ensure:
mythicConditions:
- EnchantingLevel{l=>2} true
are being executed twice.
To test that you can for example modify the MythicSkillsCondition class like so :
And when checking the console you'll notice the println statement being called twice.
here is the stack trace if that can help (it's the exact same for both calls) :
[19:23:29 INFO]: java.lang.Thread.getStackTrace:2166
[19:23:29 INFO]: com.mineinabyss.geary.papermc.mythicmobs.actions.MythicSkillsCondition.execute:28
[19:23:29 INFO]: com.mineinabyss.geary.actions.actions.EnsureAction.execute:25
[19:23:29 INFO]: com.mineinabyss.geary.actions.actions.EnsureAction.execute:13
[19:23:29 INFO]: com.mineinabyss.geary.actions.ActionKt.execute:12
[19:23:29 INFO]: com.mineinabyss.geary.actions.Task.executeInLoop:72
[19:23:29 INFO]: com.mineinabyss.geary.actions.Task.executeLooping:60
[19:23:29 INFO]: com.mineinabyss.geary.actions.Task.execute:37
[19:23:29 INFO]: com.mineinabyss.geary.actions.Tasks.execute:14
[19:23:29 INFO]: com.mineinabyss.geary.actions.Tasks.execute:7
[19:23:29 INFO]: com.mineinabyss.geary.actions.ActionKt.execute:12
[19:23:29 INFO]: com.mineinabyss.geary.actions.event_binds.ParseEntityObserversKt.bindEntityObservers$lambda$2$lambda$1$lambda$0:19
[19:23:29 INFO]: com.mineinabyss.geary.observers.builders.ObserverBuilder$exec$observer$2.run-6tioYa8:63
[19:23:29 INFO]: com.mineinabyss.geary.observers.ArchetypeEventRunner.callEvent-TLnv6qQ:58
[19:23:29 INFO]: com.mineinabyss.geary.datatypes.Entity.emit-NfUjI-c:308
[19:23:29 INFO]: com.mineinabyss.geary.papermc.features.common.event_bridge.items.ItemInteractBridge.onClick:113
[19:23:29 INFO]: co.aikar.timings.TimedEventExecutor.execute:80
[19:23:29 INFO]: org.bukkit.plugin.RegisteredListener.callEvent:70
[19:23:29 INFO]: io.papermc.paper.plugin.manager.PaperEventManager.callEvent:54
[19:23:29 INFO]: io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent:131
[19:23:29 INFO]: org.bukkit.plugin.SimplePluginManager.callEvent:628
[19:23:29 INFO]: org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent:603
[19:23:29 INFO]: org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent:559
[19:23:29 INFO]: org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent:554
[19:23:29 INFO]: org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent:550
[19:23:29 INFO]: net.minecraft.server.network.ServerGamePacketListenerImpl.handleUseItem:2014
[19:23:29 INFO]: net.minecraft.network.protocol.game.ServerboundUseItemPacket.handle:48
[19:23:29 INFO]: net.minecraft.network.protocol.game.ServerboundUseItemPacket.handle:9
[19:23:29 INFO]: net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0:29
[19:23:29 INFO]: net.minecraft.server.TickTask.run:18
[19:23:29 INFO]: net.minecraft.util.thread.BlockableEventLoop.doRunTask:155
[19:23:29 INFO]: net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask:24
[19:23:29 INFO]: net.minecraft.server.MinecraftServer.doRunTask:1448
[19:23:29 INFO]: net.minecraft.server.MinecraftServer.doRunTask:176
[19:23:29 INFO]: net.minecraft.util.thread.BlockableEventLoop.pollTask:129
[19:23:29 INFO]: net.minecraft.server.MinecraftServer.pollTaskInternal:1428
[19:23:29 INFO]: net.minecraft.server.MinecraftServer.pollTask:1422
[19:23:29 INFO]: net.minecraft.util.thread.BlockableEventLoop.managedBlock:139
[19:23:29 INFO]: net.minecraft.server.MinecraftServer.managedBlock:1379
[19:23:29 INFO]: net.minecraft.server.MinecraftServer.waitUntilNextTick:1387
[19:23:29 INFO]: net.minecraft.server.MinecraftServer.runServer:1264
[19:23:29 INFO]: net.minecraft.server.MinecraftServer.lambda$spin$2:310
[19:23:29 INFO]: java.lang.Thread.run:1447