-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
patches/server/0006-Leaf-Don-t-save-primed-tnt-entity.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: 404Setup <153366651+404Setup@users.noreply.github.com> | ||
Date: Fri, 9 Aug 2024 09:34:17 +0800 | ||
Subject: [PATCH] Leaf: Don't save primed tnt entity | ||
|
||
You can find the original code on https://github.com/Winds-Studio/Leaf | ||
|
||
diff --git a/src/main/java/net/minecraft/world/entity/item/PrimedTnt.java b/src/main/java/net/minecraft/world/entity/item/PrimedTnt.java | ||
index de8fd467abdc826d21179084a5669bd97c03850d..6290f60a5d0d57d95752e24e7a185b9c62db8757 100644 | ||
--- a/src/main/java/net/minecraft/world/entity/item/PrimedTnt.java | ||
+++ b/src/main/java/net/minecraft/world/entity/item/PrimedTnt.java | ||
@@ -219,4 +219,11 @@ public class PrimedTnt extends Entity implements TraceableEntity { | ||
return super.interact(player, hand); | ||
} | ||
// Purpur end - Shears can defuse TNT | ||
+ | ||
+ // Leaf start - PMC - Don't save primed tnt entity | ||
+ @Override | ||
+ public boolean shouldBeSaved() { | ||
+ return !one.tranic.vine.config.VineConfig.Feature.DSE.primedTNT && super.shouldBeSaved(); | ||
+ } | ||
+ // Leaf - PMC - Don't save primed tnt entity | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.