2021-06-11 14:02:28 +02:00
|
|
|
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
|
2021-06-16 06:53:50 +02:00
|
|
|
index 5e18a44af40c5c3d5276608b4ab9e83988027c32..bade87f842bf36b948bdeacf6d22715a5b075f3e 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/net/minecraft/world/level/Level.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/level/Level.java
|
2021-06-14 18:58:00 +02:00
|
|
|
@@ -147,7 +147,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable {
|
2021-06-11 14:02:28 +02:00
|
|
|
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;
|