Bug: FollowRange doesn't work with the ThreatTable

Discussion in 'Bug Reports' started by PolskaPanda, Jul 12, 2020.

  1. PolskaPanda

    PolskaPanda New Member

    Joined:
    Jul 6, 2020
    Messages:
    12
    Likes Received:
    1
    Enter a brief description of what is broken FollowRange doesn't work with the ThreatTable

    What version of Minecraft are you using?
    1.15

    What server jar are you using? PaperSpigot

    What is this a bug report for? MythicMobs

    What version of the plugin are you using? 4.9.1

    Describe the bug. Be as specific as possible, images or short gifs/videos are welcome but save configuration files for later sections. Write a whole paragraph if needed, help us bug testers replicate your issue!
    FollowRange is infinite when using the threattable. Changing the threat to 0 or resetting it doesn't stop the mob from aggroing. Using /mm test reducethreat 1000 works only in the specified FollowRange. When outside, it throws an exception without removing the aggro:

    [03:59:14 ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'mm' in plugin MythicMobs v4.9.1-3295
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.15.2.jar:git-Paper-378]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.15.2.jar:git-Paper-378]
    at org.bukkit.craftbukkit.v1_15_R1.CraftServer.dispatchCommand(CraftServer.java:761) ~[patched_1.15.2.jar:git-Paper-378]
    at net.minecraft.server.v1_15_R1.PlayerConnection.handleCommand(PlayerConnection.java:1866) ~[patched_1.15.2.jar:git-Paper-378]
    at net.minecraft.server.v1_15_R1.PlayerConnection.a(PlayerConnection.java:1674) ~[patched_1.15.2.jar:git-Paper-378]
    at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[patched_1.15.2.jar:git-Paper-378]
    at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.15.2.jar:git-Paper-378]
    at net.minecraft.server.v1_15_R1.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:23) ~[patched_1.15.2.jar:git-Paper-378]
    at net.minecraft.server.v1_15_R1.TickTask.run(SourceFile:18) ~[patched_1.15.2.jar:git-Paper-378]
    at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.15.2.jar:git-Paper-378]
    at net.minecraft.server.v1_15_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.15.2.jar:git-Paper-378]
    at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.15.2.jar:git-Paper-378]
    at net.minecraft.server.v1_15_R1.MinecraftServer.ba(MinecraftServer.java:1105) ~[patched_1.15.2.jar:git-Paper-378]
    at net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:1098) ~[patched_1.15.2.jar:git-Paper-378]
    at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeAll(IAsyncTaskHandler.java:95) ~[patched_1.15.2.jar:git-Paper-378]
    at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:1232) ~[patched_1.15.2.jar:git-Paper-378]
    at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:970) ~[patched_1.15.2.jar:git-Paper-378]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_141]
    Caused by: java.lang.NullPointerException
    at io.lumine.xikage.mythicmobs.api.bukkit.BukkitAPIHelper.reduceThreat(BukkitAPIHelper.java:190) ~[?:?]
    at io.lumine.xikage.mythicmobs.commands.test.ReduceThreatCommand.onCommand(ReduceThreatCommand.java:38) ~[?:?]
    at io.lumine.xikage.mythicmobs.utils.commands.Command.onCommand(Command.java:68) ~[?:?]
    at io.lumine.xikage.mythicmobs.utils.commands.Command.onCommand(Command.java:59) ~[?:?]
    at io.lumine.xikage.mythicmobs.utils.commands.Command.onCommand(Command.java:59) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.15.2.jar:git-Paper-378]
    ... 17 more

    Example Configurations
    WorkingFollowRange:
    Type: ZOMBIE
    Health: 1
    Damage: 1
    Options:
    FollowRange: 5

    NotWorkingFollowRange:
    Type: ZOMBIE
    Health: 1
    Damage: 1
    Modules:
    ThreatTable: true
    Options:
    FollowRange: 5
     
    #1

Share This Page