mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-26 02:53:07 +01:00
fix: enchanting
fixes: fishing rod crashing in enchantment table updated more swfs that were not updated in a recent merge sort costs in ascending order randomise enchantment seeds for new players
This commit is contained in:
1 parent
add784b259
commit
2b5a46a4fa
7 files changed
+36
-9
No files matched your search
@@ -216,6 +216,8 @@ bool PlayerList::placeNewPlayer(Connection *connection, shared_ptr<ServerPlayer>
|
||||
#endif
|
||||
// 4J Added - Give every player a map the first time they join a server
|
||||
player->inventory->setItem( 9, std::make_shared<ItemInstance>(Item::emptyMap_Id, 1, level->getAuxValueForMap(player->getXuid(), 0, centreXC, centreZC, mapScale)));
|
||||
Random* r = new Random();
|
||||
player->enchantmentSeed = r->nextInt(1000000); //Randomise enchantment seed upon joining server
|
||||
if(app.getGameRuleDefinitions() != nullptr)
|
||||
{
|
||||
app.getGameRuleDefinitions()->postProcessPlayer(player);
|
||||
|
||||
Reference in new issue
Block a user