CC: Tweaked

CC: Tweaked

57M Downloads

[Suggestion] Track who placed turtles and use it with the FakePlayer

Eufranio opened this issue ยท 1 comments

commented

Actually, the GameProfile of the TurtlePlayer is a generic one (ComputerCraft). By using this generic player on events, mods listening to them will have inconsistent data and won't be able to proccess it as it would do for real players.

My suggestion is that the turtles should track who placed them (UUID, nickname) and build a GameProfile based on it. This GameProfile would be used to construct the FakePlayer of that turtle, that would be used to fire the events they need. By passing the correct info to the events, mods listening to them would be able to proccess correctly what is happening, since they expect player events to have a real player assigned.

commented

Implemented in 41cce78.