CraftBook 3

CraftBook 3

139k Downloads

MinecartBooster causing errors

LadyCailinBot opened this issue ยท 2 comments

commented

CRAFTBOOK-3202 - Reported by kikelkik

Whenever a minecart is moving on a rail which is placed on e.g. a block of gold (MinecartBooster mechanic enabled in config.yml), it results in errors in the server log:

    MinecartBooster:
        max-boost-block: GOLD_BLOCK:0
        25x-boost-block: GOLD_ORE:0
        50x-slow-block: SOUL_SAND:0
        20x-slow-block: GRAVEL:0
[11:05:18] [Server thread/WARN]: java.lang.Exception: Stack trace
[11:05:18] [Server thread/WARN]: 	at java.lang.Thread.dumpStack(Unknown Source)
[11:05:18] [Server thread/WARN]: 	at org.bukkit.craftbukkit.v1_10_R1.entity.CraftEntity.setVelocity(CraftEntity.java:211)
[11:05:18] [Server thread/WARN]: 	at com.sk89q.craftbook.mechanics.minecart.blocks.CartBooster.onVehicleImpact(CartBooster.java:39)
[11:05:18] [Server thread/WARN]: 	at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor509.execute(Unknown Source)
[11:05:18] [Server thread/WARN]: 	at org.bukkit.plugin.EventExecutor$1.execute(EventExecutor.java:44)
[11:05:18] [Server thread/WARN]: 	at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78)
[11:05:18] [Server thread/WARN]: 	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[11:05:18] [Server thread/WARN]: 	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517)
[11:05:18] [Server thread/WARN]: 	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:502)
[11:05:18] [Server thread/WARN]: 	at com.sk89q.craftbook.bukkit.MechanicListenerAdapter.onVehicleMove(MechanicListenerAdapter.java:379)
[11:05:18] [Server thread/WARN]: 	at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:35)
[11:05:18] [Server thread/WARN]: 	at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78)
[11:05:18] [Server thread/WARN]: 	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[11:05:18] [Server thread/WARN]: 	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517)
[11:05:18] [Server thread/WARN]: 	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:502)
[11:05:18] [Server thread/WARN]: 	at net.minecraft.server.v1_10_R1.EntityMinecartAbstract.m(EntityMinecartAbstract.java:334)
[11:05:18] [Server thread/WARN]: 	at net.minecraft.server.v1_10_R1.World.entityJoinedWorld(World.java:1721)
[11:05:18] [Server thread/WARN]: 	at net.minecraft.server.v1_10_R1.World.g(World.java:1696)
[11:05:18] [Server thread/WARN]: 	at net.minecraft.server.v1_10_R1.World.tickEntities(World.java:1520)
[11:05:18] [Server thread/WARN]: 	at net.minecraft.server.v1_10_R1.WorldServer.tickEntities(WorldServer.java:635)
[11:05:18] [Server thread/WARN]: 	at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:865)
[11:05:18] [Server thread/WARN]: 	at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:403)
[11:05:18] [Server thread/WARN]: 	at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:730)
[11:05:18] [Server thread/WARN]: 	at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:629)
[11:05:18] [Server thread/WARN]: 	at java.lang.Thread.run(Unknown Source)```

It appears on both paperspigot 1.9.4 and paperspigot 1.10, Craftbook 3.9u10 and CraftBook 3.9-Snapshot for 1.9
commented

Comment by Enatras

Confirmed, same here (Craftbook 3.9 b83, PaperSpigot 1.10.2 b916)

commented

Comment by me4502

Next build will set it to max speed, rather than just multiplying by 100. It appears the clamping was removed in a recent version of Minecraft.