Commit graph

19 commits

Author SHA1 Message Date
Romain Beaumont
a50642967b use more es6 arrow function, and directly define the player.f functions instead of defining the function then assigning it 2015-10-26 01:15:21 +01:00
Romain Beaumont
2a3b8a157b add player.spawnAPlayer, player.despawnPlayers, player.updateAndSpawnNearbyPlayers, automatically spawn and despawn players when getting closer or far 2015-10-25 23:26:04 +01:00
Romain Beaumont
e3b7ad569b fix stuff related to changeWorld
* use writeOthersNearby everywhere
* create player.playerViewDistance
* put toFixedPosition in vec3 prototype
* fix changeWorld (use the same function than in login)
* use entity_destroy in changeWorld
* sendPosition, not setPosition
* disable pregenWorld : it just makes everything slow
2015-10-25 21:03:02 +01:00
DemiPixel
cfa690efb3 Change serv.world to serv.worlds. Added playerPlugins/world.js and moved a lot of stuff from login.js there. Generating multiple worlds works and moving players there works as well. A few issues here and there. 2015-10-24 17:10:43 -07:00
DemiPixel
1917165caf Change serv.world to serv.worlds. Added playerPlugins/world.js and moved a lot of stuff from login.js there. Generating multiple worlds works and moving players there works as well. A few issues here and there. 2015-10-24 16:56:28 -07:00
Romain Beaumont
24370e9d0f make the program crash in case of errors 2015-10-24 22:12:11 +02:00
Romain Beaumont
cf7b1e8fe5 send only one player_info packet, now that the problem has been solved: don't send the displayName 2015-10-14 18:58:28 +02:00
Romain Beaumont
82353ad13c actually fix displayName by not putting it (the vanilla server does that) 2015-10-12 23:01:27 +02:00
Romain Beaumont
57a253565f display name is a json chat 2015-10-12 22:53:09 +02:00
Romain Beaumont
c26b11bb74 fix 2 bugs in login : send the update health packet + send named_entity_spawn as fixed point 2015-10-12 21:46:55 +02:00
Romain Beaumont
0c738d1b74 make map sending a bit more lazy, that way it's always instant to login in the game, even if some chunks are missing 2015-10-12 18:08:20 +02:00
DemiPixel
e062e4d6a9 Start of ticks, added daycycle, fixed inventory + chest things 2015-10-09 17:18:13 -07:00
Romain Beaumont
0873206011 fix missing fixedPosition conversion, bypass nmp 0.15 uuid+array bug by sending multiple player_info, fix the mc version since next nmp version will support cross version 2015-10-09 12:30:43 +02:00
Romain Beaumont
2424dac368 increase the kickTimeout to 10min, fix "disconnected" infinite world bug 2015-10-09 00:23:34 +02:00
Romain Beaumont
587ce76f27 use nmp 0.15.0 2015-10-08 23:52:42 +02:00
Romain Beaumont
4b7acbf00e increase the sleep 2015-10-08 23:07:29 +02:00
Romain Beaumont
414c27ddcb add a sleep between each chunk write 2015-10-08 23:03:45 +02:00
Romain Beaumont
d3a20e4399 implement infinite world, fix #43, fix #52, progress on #47 2015-10-08 22:50:04 +02:00
Romain Beaumont
a79181b27e go to es6 + use real prismarine-chunk and prismarine-world 2015-10-02 00:12:09 +02:00
Renamed from lib/playerPlugins/login.js (Browse further)