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

Wand item set to -1 causes NoMatchException #2930

Open
2 tasks done
NyaomiDEV opened this issue Sep 27, 2024 · 1 comment
Open
2 tasks done

Wand item set to -1 causes NoMatchException #2930

NyaomiDEV opened this issue Sep 27, 2024 · 1 comment
Labels
Approved Added if an issue has been approved by a maintainer Bug Something isn't working

Comments

@NyaomiDEV
Copy link

Server Implementation

Paper

Server Version

1.21

Describe the bug

-1 is a valid item in the original WorldEdit to say "no default item please". FAWE doesn't recognize it as such and it errors out instead.

To Reproduce

  1. Set 'wand-item' to -1 to disable the wand item.
  2. Observe console error

Expected behaviour

FAWE should not error out.

Screenshots / Videos

Debug log (inlined)
[16:52:18 WARN]: com.sk89q.worldedit.extension.input.NoMatchException: Item name '-1' was not recognized.
[16:52:18 WARN]:        at FastAsyncWorldEdit-Bukkit-2.11.2.jar//com.sk89q.worldedit.extension.factory.parser.DefaultItemParser.parseFromInput(DefaultItemParser.java:126)
[16:52:18 WARN]:        at FastAsyncWorldEdit-Bukkit-2.11.2.jar//com.sk89q.worldedit.extension.factory.parser.DefaultItemParser.parseFromInput(DefaultItemParser.java:47)
[16:52:18 WARN]:        at FastAsyncWorldEdit-Bukkit-2.11.2.jar//com.sk89q.worldedit.extension.factory.ItemFactory.parseFromInput(ItemFactory.java:50)
[16:52:18 WARN]:        at FastAsyncWorldEdit-Bukkit-2.11.2.jar//com.sk89q.worldedit.LocalSession.loadDefaults(LocalSession.java:1262)
[16:52:18 WARN]:        at FastAsyncWorldEdit-Bukkit-2.11.2.jar//com.sk89q.worldedit.LocalSession.getTool(LocalSession.java:1234)
[16:52:18 WARN]:        at FastAsyncWorldEdit-Bukkit-2.11.2.jar//com.sk89q.worldedit.extension.platform.PlatformManager.handleBlockInteract(PlatformManager.java:433)
[16:52:18 WARN]:        at FastAsyncWorldEdit-Bukkit-2.11.2.jar//com.sk89q.worldedit.util.eventbus.MethodHandleEventHandler.dispatch(MethodHandleEventHandler.java:51)
[16:52:18 WARN]:        at FastAsyncWorldEdit-Bukkit-2.11.2.jar//com.sk89q.worldedit.util.eventbus.EventHandler.handleEvent(EventHandler.java:73)
[16:52:18 WARN]:        at FastAsyncWorldEdit-Bukkit-2.11.2.jar//com.sk89q.worldedit.util.eventbus.EventBus.dispatch(EventBus.java:193)
[16:52:18 WARN]:        at FastAsyncWorldEdit-Bukkit-2.11.2.jar//com.sk89q.worldedit.util.eventbus.EventBus.post(EventBus.java:181)
[16:52:18 WARN]:        at FastAsyncWorldEdit-Bukkit-2.11.2.jar//com.sk89q.worldedit.WorldEdit.handleBlockRightClick(WorldEdit.java:791)
[16:52:18 WARN]:        at FastAsyncWorldEdit-Bukkit-2.11.2.jar//com.sk89q.worldedit.bukkit.WorldEditListener.onPlayerInteract(WorldEditListener.java:168)
[16:52:18 WARN]:        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor23.execute(Unknown Source)
[16:52:18 WARN]:        at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77)
[16:52:18 WARN]:        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80)
[16:52:18 WARN]:        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[16:52:18 WARN]:        at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54)
[16:52:18 WARN]:        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131)
[16:52:18 WARN]:        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628)
[16:52:18 WARN]:        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:604)
[16:52:18 WARN]:        at net.minecraft.server.level.ServerPlayerGameMode.useItemOn(ServerPlayerGameMode.java:536)
[16:52:18 WARN]:        at net.minecraft.server.network.ServerGamePacketListenerImpl.handleUseItemOn(ServerGamePacketListenerImpl.java:1942)
[16:52:18 WARN]:        at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:44)
[16:52:18 WARN]:        at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:11)
[16:52:18 WARN]:        at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:56)
[16:52:18 WARN]:        at net.minecraft.server.TickTask.run(TickTask.java:18)
[16:52:18 WARN]:        at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151)
[16:52:18 WARN]:        at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24)
[16:52:18 WARN]:        at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1537)
[16:52:18 WARN]:        at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:201)
[16:52:18 WARN]:        at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:125)
[16:52:18 WARN]:        at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1514)
[16:52:18 WARN]:        at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1507)
[16:52:18 WARN]:        at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:135)
[16:52:18 WARN]:        at net.minecraft.server.MinecraftServer.managedBlock(MinecraftServer.java:1466)
[16:52:18 WARN]:        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1588)
[16:52:18 WARN]:        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1304)
[16:52:18 WARN]:        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:330)
[16:52:18 WARN]:        at java.base/java.lang.Thread.run(Unknown Source)

Error log (if applicable)

No response

Fawe Debugpaste

https://athion.net/ISPaster/paste/view/74552b40a78a4e91855de706acac4e6a

Fawe Version

FastAsyncWorldEdit version 2.11.2

Checklist

Anything else?

No response

@NyaomiDEV NyaomiDEV added the Requires Testing This is a new issue which needs to be approved before labeled with "bug" label Sep 27, 2024
@dordsor21 dordsor21 added Approved Added if an issue has been approved by a maintainer Bug Something isn't working and removed Requires Testing This is a new issue which needs to be approved before labeled with "bug" labels Dec 5, 2024
@dordsor21
Copy link
Member

FAWE does not currently support "null" wands (navigation or edit) making this a slightly more complex issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Added if an issue has been approved by a maintainer Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants