2020-10-12 01:32:08 +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.
|
|
|
|
|
2021-03-16 08:19:45 +01:00
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/World.java b/src/main/java/net/minecraft/world/level/World.java
|
2021-03-16 14:04:28 +01:00
|
|
|
index 307a89c431739ed15d8869faace7b08927626f60..ae5f9a6af810b524f6dcbed64bc943122f0536cc 100644
|
2021-03-16 08:19:45 +01:00
|
|
|
--- a/src/main/java/net/minecraft/world/level/World.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/level/World.java
|
2021-03-16 14:04:28 +01:00
|
|
|
@@ -135,7 +135,7 @@ public abstract class World implements GeneratorAccess, AutoCloseable {
|
2020-10-12 01:32:08 +02:00
|
|
|
public boolean captureBlockStates = false;
|
|
|
|
public boolean captureTreeGeneration = false;
|
|
|
|
public Map<BlockPosition, org.bukkit.craftbukkit.block.CraftBlockState> capturedBlockStates = new java.util.LinkedHashMap<>(); // Paper
|
|
|
|
- public Map<BlockPosition, TileEntity> capturedTileEntities = new HashMap<>();
|
|
|
|
+ public Map<BlockPosition, TileEntity> capturedTileEntities = new java.util.LinkedHashMap<>(); // Paper
|
|
|
|
public List<EntityItem> captureDrops;
|
|
|
|
public long ticksPerAnimalSpawns;
|
|
|
|
public long ticksPerMonsterSpawns;
|