mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -04:00
send custom blocks after levelinit
This commit is contained in:
parent
ab65e34c0c
commit
7f1d11d271
@ -278,14 +278,15 @@ namespace MCGalaxy {
|
||||
AccessResult access = level.BuildAccess.Check(this);
|
||||
AllowBuild = access == AccessResult.Whitelisted || access == AccessResult.Allowed;
|
||||
|
||||
try {
|
||||
try {
|
||||
SendRaw(Opcode.LevelInitialise);
|
||||
|
||||
if (hasBlockDefs) {
|
||||
if (oldLevel != null && oldLevel != level)
|
||||
RemoveOldLevelCustomBlocks(oldLevel);
|
||||
BlockDefinition.SendLevelCustomBlocks(this);
|
||||
}
|
||||
|
||||
SendRaw(Opcode.LevelInitialise);
|
||||
using (LevelChunkStream s = new LevelChunkStream(this))
|
||||
LevelChunkStream.CompressMap(this, s);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user