-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix tp snipe complex #49
Fix tp snipe complex #49
Conversation
Alright, it's been a very long time, going to test this out. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and everything else is working amazingly well (on MT 5.7.0).
Thanks so much! 🚀 It appears the only thing is the area requests on the formspec, and it should be done. 🙂
for request_id, _ in pairs(sent_requests) do | ||
if request_id ~= "count" then | ||
local request = request_list[request_id] | ||
if request.direction == "receiver" then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe area requests should be shown here as well.
Without the area requests, the formspec is kind of bugged out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will try to take care of this soon 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, thanks. Let me know if you need any help with it. 🙂
Hey. Just checking in: do you need any help? Thanks. 🙂 |
Ping. @oversword. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works.
This is awesome. Thanks! 🚀
Fixes BlockySurvival/issue-tracker#83
Fixes BlockySurvival/issue-tracker#320
Choose between this and #51
This PR fixes the teleport conflicts by allowing for multiple teleport requests, and allowing the user to choose between them via a form
The form can also be manually brought up using the new command
/tpf
for "teleport form"The form lists all requests made by the player and to the player, and provides buttons for accepting or denying requests, and cancelling their own requests
To make this possible, I have completely re-thought the way teleport requests are stored, the lists
tp.tpr_list
,tp.tphr_list
,tp.tpc_list
andtp.tpn_list
should no longer be needed. Instead there isrequest_list
,sender_list
andreceiver_list
. Each request gets its own ID and is a unique object, the sender and receiver lists index these IDs by the senders and receivers for easier retrieval later.This allows for multiple TP requests to exist at the same time without overwriting each other
This needs a lot of testing, effectively every function needs to be tested, or at least:
/tpr
,/tphr
,/tpy
,/tpn
,/tpc