From 7f1d11d271d55b0c386453e7292b5cc36d21cb4a Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Fri, 21 Apr 2017 19:37:30 +1000 Subject: [PATCH] send custom blocks after levelinit --- MCGalaxy/Network/Player.Networking.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MCGalaxy/Network/Player.Networking.cs b/MCGalaxy/Network/Player.Networking.cs index f79a4dff5..ddb0a48a6 100644 --- a/MCGalaxy/Network/Player.Networking.cs +++ b/MCGalaxy/Network/Player.Networking.cs @@ -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);