mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-07-24 15:47:05 +00:00
Feature: Players start with an empty map instead of a drawn map
This commit is contained in:
parent
02ea52926c
commit
cc94cb8966
|
|
@ -178,7 +178,7 @@ bool PlayerList::placeNewPlayer(Connection *connection, shared_ptr<ServerPlayer>
|
|||
int centreZC = 0;
|
||||
#endif
|
||||
// 4J Added - Give every player a map the first time they join a server
|
||||
player->inventory->setItem( 9, std::make_shared<ItemInstance>(Item::map_Id, 1, level->getAuxValueForMap(player->getXuid(), 0, centreXC, centreZC, mapScale)));
|
||||
player->inventory->setItem( 9, std::make_shared<ItemInstance>(Item::emptyMap_Id, 1, level->getAuxValueForMap(player->getXuid(), 0, centreXC, centreZC, mapScale)));
|
||||
if(app.getGameRuleDefinitions() != nullptr)
|
||||
{
|
||||
app.getGameRuleDefinitions()->postProcessPlayer(player);
|
||||
|
|
|
|||
Loading…
Reference in a new issue