send custom blocks after levelinit

This commit is contained in:
UnknownShadow200 2017-04-21 19:37:30 +10:00
parent ab65e34c0c
commit 7f1d11d271

View File

@ -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);