diff options
author | md_5 <git@md-5.net> | 2018-08-27 18:27:59 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-08-27 18:29:28 +1000 |
commit | c2cbdc5ab41fe4f77a5a28f01d8b79098b1bb392 (patch) | |
tree | 766d5269ec727bc896cd47ca7e64f78314313222 /nms-patches/World.patch | |
parent | f5985747113f69decf936726bd609e55611ab465 (diff) | |
download | craftbukkit-c2cbdc5ab41fe4f77a5a28f01d8b79098b1bb392.tar craftbukkit-c2cbdc5ab41fe4f77a5a28f01d8b79098b1bb392.tar.gz craftbukkit-c2cbdc5ab41fe4f77a5a28f01d8b79098b1bb392.tar.lz craftbukkit-c2cbdc5ab41fe4f77a5a28f01d8b79098b1bb392.tar.xz craftbukkit-c2cbdc5ab41fe4f77a5a28f01d8b79098b1bb392.zip |
SPIGOT-4316: Do even less processing when block placement without physics requested
Diffstat (limited to 'nms-patches/World.patch')
-rw-r--r-- | nms-patches/World.patch | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nms-patches/World.patch b/nms-patches/World.patch index 1e96e170..78569d8c 100644 --- a/nms-patches/World.patch +++ b/nms-patches/World.patch @@ -146,6 +146,7 @@ } else { Chunk chunk = this.getChunkAtWorldCoords(blockposition); Block block = iblockdata.getBlock(); +- IBlockData iblockdata1 = chunk.a(blockposition, iblockdata, (i & 64) != 0); + + // CraftBukkit start - capture blockstates + CraftBlockState blockstate = null; @@ -155,7 +156,7 @@ + } + // CraftBukkit end + - IBlockData iblockdata1 = chunk.a(blockposition, iblockdata, (i & 64) != 0); ++ IBlockData iblockdata1 = chunk.a(blockposition, iblockdata, (i & 64) != 0, (i & 1024) == 0); // CraftBukkit custom NO_PLACE flag if (iblockdata1 == null) { + // CraftBukkit start - remove blockstate if failed |