Can't use heightmap brush
DuendeInexistente opened this issue ยท 1 comments
WorldEdit Version
7.2.12
Platform Version
Fabric 0.1410
Confirmations
- I am using the most recent Minecraft release.
- I am using a version of WorldEdit compatible with my Minecraft version.
- I am using the latest or recommended version of my platform software.
- I am NOT using a hybrid server, e.g. a server that combines Bukkit and Forge. Examples include Arclight, Mohist, and Cardboard.
- I am NOT using a fork of WorldEdit, such as FastAsyncWorldEdit (FAWE) or AsyncWorldEdit (AWE)
Bug Description
Trying to use the heightmap brush causes the following error in the log:
[22:31:15] [Server thread/ERROR]: Could not dispatch event: com.sk89q.worldedit.event.platform.PlayerInputEvent@4158f47c to handler EventHandler{priority=NORMAL}
java.lang.reflect.InvocationTargetException: null
at com.sk89q.worldedit.util.eventbus.EventHandler.handleEvent(EventHandler.java:75) ~[worldedit-mod-7.2.12.jar:?]
at com.sk89q.worldedit.util.eventbus.EventBus.dispatch(EventBus.java:193) ~[worldedit-mod-7.2.12.jar:?]
at com.sk89q.worldedit.util.eventbus.EventBus.post(EventBus.java:181) ~[worldedit-mod-7.2.12.jar:?]
at com.sk89q.worldedit.WorldEdit.handleRightClick(WorldEdit.java:644) ~[worldedit-mod-7.2.12.jar:?]
at com.sk89q.worldedit.fabric.FabricWorldEdit.onRightClickBlock(FabricWorldEdit.java:300) ~[worldedit-mod-7.2.12.jar:?]
at net.fabricmc.fabric.api.event.player.UseBlockCallback.lambda$static$0(UseBlockCallback.java:41) ~[fabric-events-interaction-v0-0.4+c6af733c90-614d60d1fcbadb47.jar:?]
at net.minecraft.class_3225.handler$zll000$interactBlock(class_3225.java:587) ~[client-intermediary.jar:?]
at net.minecraft.class_3225.method_14262(class_3225.java) ~[client-intermediary.jar:?]
at net.minecraft.class_3244.method_12046(class_3244.java:1145) ~[client-intermediary.jar:?]
at net.minecraft.class_2885.method_12547(class_2885.java:34) ~[client-intermediary.jar:?]
at net.minecraft.class_2885.method_11054(class_2885.java:8) ~[client-intermediary.jar:?]
at net.minecraft.class_2600.method_11072(class_2600.java:22) ~[client-intermediary.jar:?]
at net.minecraft.class_3738.run(class_3738.java:18) ~[client-intermediary.jar:?]
at net.minecraft.class_1255.method_18859(class_1255.java:157) ~[client-intermediary.jar:?]
at net.minecraft.class_4093.method_18859(class_4093.java:23) ~[client-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_24306(MinecraftServer.java:776) ~[client-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_18859(MinecraftServer.java:159) ~[client-intermediary.jar:?]
at net.minecraft.class_1255.method_16075(class_1255.java:131) ~[client-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_20415(MinecraftServer.java:758) ~[client-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_16075(MinecraftServer.java:752) ~[client-intermediary.jar:?]
at net.minecraft.class_1255.method_18857(class_1255.java:140) ~[client-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_16208(MinecraftServer.java:737) ~[client-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:669) ~[client-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:257) ~[client-intermediary.jar:?]
at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "com.sk89q.worldedit.util.asset.holder.ImageHeightmap.getHeightAt(int, int, int)" because "this.heightmap" is null
at com.sk89q.worldedit.command.tool.brush.ImageHeightmapBrush.build(ImageHeightmapBrush.java:63) ~[worldedit-mod-7.2.12.jar:?]
at com.sk89q.worldedit.command.tool.BrushTool.actPrimary(BrushTool.java:209) ~[worldedit-mod-7.2.12.jar:?]
at com.sk89q.worldedit.extension.platform.PlatformManager.handlePlayerInput(PlatformManager.java:425) ~[worldedit-mod-7.2.12.jar:?]
at com.sk89q.worldedit.util.eventbus.MethodHandleEventHandler.dispatch(MethodHandleEventHandler.java:51) ~[worldedit-mod-7.2.12.jar:?]
at com.sk89q.worldedit.util.eventbus.EventHandler.handleEvent(EventHandler.java:73) ~[worldedit-mod-7.2.12.jar:?]
... 24 more
[22:31:15] [Server thread/ERROR]: Could not dispatch event: com.sk89q.worldedit.event.platform.PlayerInputEvent@41e89ac5 to handler EventHandler{priority=NORMAL}
java.lang.reflect.InvocationTargetException: null
at com.sk89q.worldedit.util.eventbus.EventHandler.handleEvent(EventHandler.java:75) ~[worldedit-mod-7.2.12.jar:?]
at com.sk89q.worldedit.util.eventbus.EventBus.dispatch(EventBus.java:193) ~[worldedit-mod-7.2.12.jar:?]
at com.sk89q.worldedit.util.eventbus.EventBus.post(EventBus.java:181) ~[worldedit-mod-7.2.12.jar:?]
at com.sk89q.worldedit.WorldEdit.handleRightClick(WorldEdit.java:644) ~[worldedit-mod-7.2.12.jar:?]
at com.sk89q.worldedit.fabric.FabricWorldEdit.onRightClickAir(FabricWorldEdit.java:316) ~[worldedit-mod-7.2.12.jar:?]
at net.fabricmc.fabric.api.event.player.UseItemCallback.lambda$static$0(UseItemCallback.java:42) ~[fabric-events-interaction-v0-0.4+c6af733c90-614d60d1fcbadb47.jar:?]
at net.minecraft.class_3225.handler$zll000$interactItem(class_3225.java:598) ~[client-intermediary.jar:?]
at net.minecraft.class_3225.method_14256(class_3225.java) ~[client-intermediary.jar:?]
at net.minecraft.class_3244.method_12065(class_3244.java:1182) ~[client-intermediary.jar:?]
at net.minecraft.class_2886.method_12550(class_2886.java:29) ~[client-intermediary.jar:?]
at net.minecraft.class_2886.method_11054(class_2886.java:7) ~[client-intermediary.jar:?]
at net.minecraft.class_2600.method_11072(class_2600.java:22) ~[client-intermediary.jar:?]
at net.minecraft.class_3738.run(class_3738.java:18) ~[client-intermediary.jar:?]
at net.minecraft.class_1255.method_18859(class_1255.java:157) ~[client-intermediary.jar:?]
at net.minecraft.class_4093.method_18859(class_4093.java:23) ~[client-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_24306(MinecraftServer.java:776) ~[client-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_18859(MinecraftServer.java:159) ~[client-intermediary.jar:?]
at net.minecraft.class_1255.method_16075(class_1255.java:131) ~[client-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_20415(MinecraftServer.java:758) ~[client-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_16075(MinecraftServer.java:752) ~[client-intermediary.jar:?]
at net.minecraft.class_1255.method_5383(class_1255.java:116) ~[client-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_16208(MinecraftServer.java:736) ~[client-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:669) ~[client-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:257) ~[client-intermediary.jar:?]
at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "com.sk89q.worldedit.util.asset.holder.ImageHeightmap.getHeightAt(int, int, int)" because "this.heightmap" is null
at com.sk89q.worldedit.command.tool.brush.ImageHeightmapBrush.build(ImageHeightmapBrush.java:63) ~[worldedit-mod-7.2.12.jar:?]
at com.sk89q.worldedit.command.tool.BrushTool.actPrimary(BrushTool.java:209) ~[worldedit-mod-7.2.12.jar:?]
at com.sk89q.worldedit.extension.platform.PlatformManager.handlePlayerInput(PlatformManager.java:425) ~[worldedit-mod-7.2.12.jar:?]
at com.sk89q.worldedit.util.eventbus.MethodHandleEventHandler.dispatch(MethodHandleEventHandler.java:51) ~[worldedit-mod-7.2.12.jar:?]
at com.sk89q.worldedit.util.eventbus.EventHandler.handleEvent(EventHandler.java:73) ~[worldedit-mod-7.2.12.jar:?]
... 24 more
Expected Behavior
brush map working
Reproduction Steps
//br heightmap "/home/cammera/Arte/Mias/My art/@Others/gradient.png"
Anything Else?
No response