mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-29 11:59:17 +00:00
--------- Co-authored-by: Lumine1909 <133463833+Lumine1909@users.noreply.github.com> Co-authored-by: LittleChest <81231195+LittleChest@users.noreply.github.com>
27 lines
1.5 KiB
Diff
27 lines
1.5 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: violetc <58360096+s-yh-china@users.noreply.github.com>
|
|
Date: Tue, 29 Nov 2022 14:54:56 +0800
|
|
Subject: [PATCH] InstantBlockUpdater Reintroduced
|
|
|
|
This patch is Powered by Carpet-TIS-Addition(https://github.com/plusls/Carpet-TIS-Addition)
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/Level.java b/src/main/java/net/minecraft/world/level/Level.java
|
|
index 6ff8be0ee869860d0afe0026f10aad1a108d0b56..133c90ee13587c441ecd47038d389353940ad3bf 100644
|
|
--- a/src/main/java/net/minecraft/world/level/Level.java
|
|
+++ b/src/main/java/net/minecraft/world/level/Level.java
|
|
@@ -303,7 +303,13 @@ public abstract class Level implements LevelAccessor, AutoCloseable, ca.spottedl
|
|
this.thread = Thread.currentThread();
|
|
this.biomeManager = new BiomeManager(this, i);
|
|
this.isDebug = flag1;
|
|
- this.neighborUpdater = new CollectingNeighborUpdater(this, j);
|
|
+ // Leaves start - instantBlockUpdaterReintroduced
|
|
+ if (org.leavesmc.leaves.LeavesConfig.instantBlockUpdaterReintroduced) {
|
|
+ this.neighborUpdater = new net.minecraft.world.level.redstone.InstantNeighborUpdater(this);
|
|
+ } else {
|
|
+ this.neighborUpdater = new CollectingNeighborUpdater(this, j);
|
|
+ }
|
|
+ // Leaves end - instantBlockUpdaterReintroduced
|
|
this.registryAccess = iregistrycustom;
|
|
this.damageSources = new DamageSources(iregistrycustom);
|
|
// CraftBukkit start
|