mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Debug stick should not update neighbors
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
From 667c7634e2f1c8a064d621e3fa8d37b7ebca4220 Mon Sep 17 00:00:00 2001
|
||||
From: William Blake Galbreath <Blake.Galbreath@GMail.com>
|
||||
Date: Sat, 4 Apr 2020 17:16:30 -0500
|
||||
Subject: [PATCH] Debug stick should not update neighbors
|
||||
|
||||
---
|
||||
src/main/java/net/minecraft/server/ItemStack.java | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/ItemStack.java b/src/main/java/net/minecraft/server/ItemStack.java
|
||||
index 6b45bc17cf..92d9ddf6a7 100644
|
||||
--- a/src/main/java/net/minecraft/server/ItemStack.java
|
||||
+++ b/src/main/java/net/minecraft/server/ItemStack.java
|
||||
@@ -185,6 +185,11 @@ public final class ItemStack {
|
||||
if (this.getItem() == Items.BONE_MEAL) {
|
||||
world.captureTreeGeneration = true;
|
||||
}
|
||||
+ // Purpur start
|
||||
+ else if (this.getItem() == Items.DEBUG_STICK) {
|
||||
+ world.captureBlockStates = false;
|
||||
+ }
|
||||
+ // Purpur end
|
||||
}
|
||||
Item item = this.getItem();
|
||||
EnumInteractionResult enuminteractionresult = item.a(itemactioncontext);
|
||||
--
|
||||
2.24.0
|
||||
|
||||
Reference in New Issue
Block a user