A recent commit, "Attempt to fix nametag bug", commit id bff7fd0, introduced a bug which is fixed here.
The commit added some code to mods/other/playertag/init.lua, and in the code was a call to self.object:get_parent().
This function does not exist, and therefore the server would crash after the end of each match when it tried to call it.
This PR replaces self.object:get_parent() with an equivalent self.object:get_attach().
Since self.object:get_attach() works slightly differently than how self.object:get_parent() was supposed to work, a bit more code is added in to compensate.
A recent commit, "Attempt to fix nametag bug", commit id bff7fd0, introduced a bug which is fixed here. The commit added some code to mods/other/playertag/init.lua, and in the code was a call to self.object:get_parent(). This function does not exist, and therefore the server would crash after the end of each match when it tried to call it. This PR replaces self.object:get_parent() with an equivalent self.object:get_attach(). Since self.object:get_attach() works slightly differently than how self.object:get_parent() was supposed to work, a bit more code is added in to compensate.