Inventory: Restrict access from too far away

This commit is contained in:
SmallJoker
2017-11-22 19:25:26 +01:00
parent 8fba3c93d5
commit f72ac42ca0
2 changed files with 46 additions and 22 deletions

View File

@@ -481,6 +481,7 @@ class Server : public con::PeerHandler, public MapEventReceiver,
void RespawnPlayer(u16 peer_id);
void DeleteClient(u16 peer_id, ClientDeletionReason reason);
void UpdateCrafting(RemotePlayer *player);
bool checkInteractDistance(RemotePlayer *player, const f32 d, const std::string what);
void handleChatInterfaceEvent(ChatEvent *evt);