3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-23 23:00:08 +01:00

[Bleeding] Correctly generate torches on portal. Fixes BUKKIT-746

In the CraftBlockState implementation, updating the blockstate onto
a block will force the block state data value onto the block.
Unlike vanilla which relied on block data being set when the type
changed, we must instead explicitely set the data in the blockstate.
Dieser Commit ist enthalten in:
t00thpick1 2013-12-17 20:27:49 -05:00 committet von mbax
Ursprung 8da5126282
Commit 3cd64185a9

Datei anzeigen

@ -606,10 +606,10 @@ public class EntityEnderDragon extends EntityInsentient implements IComplex, IMo
world.setType(i, b0 + 0, j, Blocks.BEDROCK); world.setType(i, b0 + 0, j, Blocks.BEDROCK);
world.setType(i, b0 + 1, j, Blocks.BEDROCK); world.setType(i, b0 + 1, j, Blocks.BEDROCK);
world.setType(i, b0 + 2, j, Blocks.BEDROCK); world.setType(i, b0 + 2, j, Blocks.BEDROCK);
world.setType(i - 1, b0 + 2, j, Blocks.TORCH); world.setTypeAndData(i - 1, b0 + 2, j, Blocks.TORCH, 2, 0);
world.setType(i + 1, b0 + 2, j, Blocks.TORCH); world.setTypeAndData(i + 1, b0 + 2, j, Blocks.TORCH, 1, 0);
world.setType(i, b0 + 2, j - 1, Blocks.TORCH); world.setTypeAndData(i, b0 + 2, j - 1, Blocks.TORCH, 4, 0);
world.setType(i, b0 + 2, j + 1, Blocks.TORCH); world.setTypeAndData(i, b0 + 2, j + 1, Blocks.TORCH, 3, 0);
world.setType(i, b0 + 3, j, Blocks.BEDROCK); world.setType(i, b0 + 3, j, Blocks.BEDROCK);
world.setType(i, b0 + 4, j, Blocks.DRAGON_EGG); world.setType(i, b0 + 4, j, Blocks.DRAGON_EGG);