jeremiahwinsley / pylons

Pylons mod for NeoForge 1.21.1
https://www.curseforge.com/minecraft/mc-mods/pylons
MIT License
3 stars 4 forks source link

Suggestion: check for if player's spawn is in same chunk as expulsion pylon to prevent griefing #2

Closed TheDyreBanana closed 2 years ago

TheDyreBanana commented 2 years ago

Currently the expulsion pylon just sends people away no matter where their spawn is. However, if the pylon is placed in the same chunk as the player's spawn they are basically trapped until it is destroyed. Is there any way that the pylon could check where the player has their spawn set and send them to world spawn or just not send them away at all? Otherwise this could be used to permanently trap players inside their base or even at world spawn, especially if they aren't using beds to set their spawn.

jeremiahwinsley commented 2 years ago

What version are you on? It does check for both player spawn and world spawn, and should do nothing if they are within the spawn chunk. But I had to rewrite some of that code for 1.18 and I may have missed something.

TheDyreBanana commented 2 years ago

minecraft 1.18 atm7

jeremiahwinsley commented 2 years ago

Should be fixed in 2.0.1. Thanks for the report!