Homes getting removed or simply cannot TP to it, "underneath another foundation" errorSolved

Hi! 

I started up my server after a long hiatus, and both me and another player has a bug where he cannot TP to his home because it says "You can't use home on a foundation that is underneath another foundation.".

For me, the error is even worse, because one of my homes always gets removed when I try to TP to it. Here is an image of what it says, and where my teleport base is:
https://stryp.win/sharex/29-20-32-1907.jpg

My plugin version is 1.7.5, and here is my config .json:
https://stryp.win/sharex/NTeleportation.json

A few helpful peeps on the Discord helped me figure out the error. It probably occured because I set my home too close to the TC in the 1x1. I removed it and put it a bit closer towards the door, that seemingly fixed the issue, now I can TP all the time.

New location:
https://stryp.win/sharex/30-17-43-1913.jpg

I'll keep this pinned so others can more easily find the answer and not sethome so close to other entities

I realize it's a bit annoying to deal with but that's just how it is atm

I've had this error without even having a TC on the foundation, just a plain 'ole random foundation I attempted to set my home on, figured I should mention it since it seems others in the server I play on seem to have the issue as well occasionally, even without TC as well.

Edit: The server I play on was on version 1.7.5 as well

VNvQh52G4zy6MsT.png ViolationHandler

I've had this error without even having a TC on the foundation, just a plain 'ole random foundation I attempted to set my home on, figured I should mention it since it seems others in the server I play on seem to have the issue as well occasionally, even without TC as well.

I had this happen a couple days ago when I was above a foundation, too. turns out it's a precision error with floats

so something like a.y=1.00116 versus point.y=1.00115 in UnderneathFoundation causes it to fail but it's rare

rounding fix it, return Math.Round(a.y, 2) < Math.Round(hit.point.y, 2);

I've included my fix and your patch for the broken BlockedTeleportTarget message in the next update

nivex

I had this happen a couple days ago when I was above a foundation, too. turns out it's a precision error with floats

so something like a.y=1.00116 versus point.y=1.00115 in UnderneathFoundation causes it to fail but it's rare

rounding fix it, return Math.Round(a.y, 2) < Math.Round(hit.point.y, 2);

I've included my fix and your patch for the broken BlockedTeleportTarget message in the next update

Sweet! Glad to hear! Thanks for the quick response and fix/finding :)