mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-21 07:49:29 +00:00
24 lines
999 B
Diff
24 lines
999 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/ServerExplosion.java b/src/main/java/net/minecraft/world/level/ServerExplosion.java
|
|
index e857fd02a5e341a1a701da71874dbd850e3c5a5d..0dae16d140666cae7633bbfef6d1c5b979d7dc9e 100644
|
|
--- a/src/main/java/net/minecraft/world/level/ServerExplosion.java
|
|
+++ b/src/main/java/net/minecraft/world/level/ServerExplosion.java
|
|
@@ -845,6 +845,12 @@ public class ServerExplosion implements Explosion {
|
|
});
|
|
}
|
|
|
|
+ // Sakura start - config for explosions dropping items
|
|
+ if (!this.level.sakuraConfig().cannons.explosion.explosionsDropItems) {
|
|
+ list1.clear();
|
|
+ }
|
|
+ // Sakura end - config for explosions dropping items
|
|
+
|
|
iterator = list1.iterator();
|
|
|
|
while (iterator.hasNext()) {
|