mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-21 15:59:26 +00:00
24 lines
908 B
Diff
24 lines
908 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Samsuik <kfian294ma4@gmail.com>
|
|
Date: Sun, 24 Dec 2023 11:20:10 +0000
|
|
Subject: [PATCH] Add explosions dropping items config
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/Explosion.java b/src/main/java/net/minecraft/world/level/Explosion.java
|
|
index 553dca07cee7cd5492bba63270a9b6d0ad1669e8..713394ce41e0c935caf2a41697c7ad7cd3412ad1 100644
|
|
--- a/src/main/java/net/minecraft/world/level/Explosion.java
|
|
+++ b/src/main/java/net/minecraft/world/level/Explosion.java
|
|
@@ -885,6 +885,12 @@ public class Explosion {
|
|
});
|
|
}
|
|
|
|
+ // Sakura start
|
|
+ if (!level.sakuraConfig().cannons.explosion.explosionsDropItems) {
|
|
+ list.clear();
|
|
+ }
|
|
+ // Sakura end
|
|
+
|
|
Iterator iterator = list.iterator();
|
|
|
|
while (iterator.hasNext()) {
|