mirror of
https://github.com/danbulant/flying-squid
synced 2026-07-08 20:51:17 +00:00
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.
This commit is contained in:
parent
1917165caf
commit
cfa690efb3
2 changed files with 9 additions and 11 deletions
|
|
@ -10,7 +10,6 @@ function inject(serv, player)
|
|||
try {
|
||||
var id = await player.world.getBlockType(referencePosition);
|
||||
var blockAbove = await player.world.getBlockType(referencePosition.clone().add(new vec3(0, 1, 0)));
|
||||
|
||||
if (id == 54) {
|
||||
if (blockAbove) {
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -118,7 +118,6 @@ function inject(serv,player)
|
|||
ping: 1
|
||||
}))
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function announceJoin()
|
||||
|
|
|
|||
Loading…
Reference in a new issue