defNotPau / SimpleDeathChest

A simple minecraft paper plugin which creates a chest with the player's items once they die.
https://modrinth.com/plugin/simpledeathchest
Other
1 stars 0 forks source link

Chest spewn at 0, when dying at <0 #1

Open kawashirov opened 2 days ago

kawashirov commented 2 days ago

Hello there! Nice plugin, good job.

But I noticed an issue: on modern Minecraft versions, when player dies at y < 0 the chest respawns around y = 0. This is especially problematic when dying deep inside caves.

As I heard, there was api to check vertical bounds of the world, so you can replace 0 on this check with that bound. 🤷‍♂️ image

defNotPau commented 6 hours ago

Hi, i think the error is fixed, its currently only for the 1.2.x branch as I don't have time to make the change into master. The Modrinth version with the fix will probably be out tomorrow. It's untested still...

I used WorldInfo.getMinHeight() image

Thank you so much for pointing this out :D