Bentobox: End portal bug when you jump from high place

Created on 9 Jan 2020  路  16Comments  路  Source: BentoBoxWorld/BentoBox

Description

Describe the bug




When a player jumps to end portal from high he almost everytime teleport under end island.

Steps to reproduce the behavior




Jump to end portal from high place (watch video).

Expected behavior



You will teleport on island top not above.

Screenshots and videos (Optional)



BUG (first scene is how teleports to end when jump, second scene is how need to jump to be teleport above island): https://www.youtube.com/watch?v=v0yt2lxcxYI
NO BUG (when no pressing space to jump and everything is ok): https://www.youtube.com/watch?v=hUVOIUMSmfM

Environment

BentoBox Version (Mandatory)


[22:20:30 INFO]: Running PAPER 1.15.1.
[22:20:30 INFO]: BentoBox version: 1.11.0-SNAPSHOT-b1564
[22:20:30 INFO]: Database: JSON
[22:20:30 INFO]: Loaded Game Worlds:
[22:20:30 INFO]: bskyblock_world (BSkyBlock): Overworld, Nether, End
[22:20:30 INFO]: Loaded Addons:
[22:20:30 INFO]: Biomes 1.6.0.1-SNAPSHOT-b149 (ENABLED)
[22:20:30 INFO]: Border 1.0.3 (ENABLED)
[22:20:30 INFO]: BSkyBlock 1.10.1-SNAPSHOT-b583 (ENABLED)
[22:20:30 INFO]: Challenges 0.9.0-SNAPSHOT-b396 (ENABLED)
[22:20:30 INFO]: DimensionalTrees 1.6.0-SNAPSHOT-b78 (ENABLED)
[22:20:30 INFO]: Greenhouses 1.0.0 (ENABLED)
[22:20:30 INFO]: Level 1.9.1-SNAPSHOT-b332 (ENABLED)
[22:20:30 INFO]: Likes 1.7.0-SNAPSHOT-#14 (ENABLED)
[22:20:30 INFO]: Limits 1.9.1-SNAPSHOT-b193 (ENABLED)
[22:20:30 INFO]: MagicCobblestoneGenerator 1.9.0-SNAPSHOT-b92 (ENABLED)
[22:20:30 INFO]: TwerkingForTrees 1.1.2 (ENABLED)
[22:20:30 INFO]: Warps 1.9.2-SNAPSHOT-b218 (ENABLED)
Done Bug

All 16 comments

So this happens when you press jump but not when you fall into the portal?

Yeah it looks like that and you need to be a little bit above portal (like in a video).

Interesting! I like your video music too.

I'll investigate.

Teleporting doesn't change the player's momentum when they go through a portal, so when the player arrives with a lot of velocity they continue in that direction. In the jumping case, it looks like Minecraft isn't detecting the blocks in the way because you're moving so fast. You should crumple and die. Let me do some testing and see the best outcome.

That's a fun bug 馃槀

@SirvydasS Please try the latest build with this fix in.

There is still a bug. Plus BentoBox trows errors.
[09:11:06 WARN]: [BentoBox] Task #3567 for BentoBox v1.11.0-SNAPSHOT-b1580 generated an exception java.lang.IncompatibleClassChangeError: Expecting non-static method world.bentobox.bentobox.api.events.addon.AddonEvent.builder()Lworld/bentobox/bentobox/api/events/addon/AddonEvent$AddonEventBuilder; at world.bentobox.level.calculators.PlayerLevel.fireIslandLevelCalcEvent(PlayerLevel.java:69) ~[?:?] at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftTask.run(CraftTask.java:84) ~[patched_1.15.1.jar:git-Paper-42] at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:452) ~[patched_1.15.1.jar:git-Paper-42] at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1179) ~[patched_1.15.1.jar:git-Paper-42] at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:417) ~[patched_1.15.1.jar:git-Paper-42] at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:1106) ~[patched_1.15.1.jar:git-Paper-42] at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:933) ~[patched_1.15.1.jar:git-Paper-42] at java.lang.Thread.run(Thread.java:835) [?:?]

The error is from the Level addon. You need to use the latest snapshot release.

Okay, this latest change should help. Please test.

Bug is still there.
BentoBox version: 1.11.0-SNAPSHOT-b1616

馃槱 I don鈥檛 understand. I鈥檒l have to look at your video again and try and replicate. I might have to give you a debug build to try and find out what is going on. Oh well.

If this helps @tastybento I have the same issue on my server with the old build and the new build. It won't remove the players momentum when you enter the end portal.

I think that the velocity is being preserved somehow. Can someone try this version?
BentoBox-1.11.1-SNAPSHOT-LOCAL.jar.zip

Maybe seems ok now :)

This fixed in the latest builds?

Yes, it was committed by 15014c8e013fb6a80ce70b151cc685e302b7873f.
Good that it works.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

leonardochaia picture leonardochaia  路  5Comments

HuJunwei23333 picture HuJunwei23333  路  6Comments

Klaerke91 picture Klaerke91  路  6Comments

rudipratm picture rudipratm  路  4Comments

OverBrave picture OverBrave  路  5Comments