Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 13:00:06 +01:00
8d182e8639
This reverts commit 622598f1dd
.
25 Zeilen
1.4 KiB
Diff
25 Zeilen
1.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Spottedleaf <spottedleaf@spottedleaf.dev>
|
|
Date: Fri, 7 Aug 2020 04:27:56 -0700
|
|
Subject: [PATCH] Retain block place order when capturing blockstates
|
|
|
|
Fixes twisted vines not connecting properly when grown via
|
|
bonemeal by a player.
|
|
|
|
In general, look at making this logic more robust (i.e properly handling
|
|
cases where a captured entry is overriden) - but for now this will do.
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/Level.java b/src/main/java/net/minecraft/world/level/Level.java
|
|
index 36fd88239da908c2685a853ec28c0f3db691fad0..e095f699a1e79e89fa87cb1d7096316450274495 100644
|
|
--- a/src/main/java/net/minecraft/world/level/Level.java
|
|
+++ b/src/main/java/net/minecraft/world/level/Level.java
|
|
@@ -148,7 +148,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable {
|
|
public boolean captureBlockStates = false;
|
|
public boolean captureTreeGeneration = false;
|
|
public Map<BlockPos, org.bukkit.craftbukkit.block.CraftBlockState> capturedBlockStates = new java.util.LinkedHashMap<>(); // Paper
|
|
- public Map<BlockPos, BlockEntity> capturedTileEntities = new HashMap<>();
|
|
+ public Map<BlockPos, BlockEntity> capturedTileEntities = new java.util.LinkedHashMap<>(); // Paper
|
|
public List<ItemEntity> captureDrops;
|
|
public long ticksPerAnimalSpawns;
|
|
public long ticksPerMonsterSpawns;
|