mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-28 11:19:08 +00:00
24 lines
939 B
Diff
24 lines
939 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 3663575a27b21b01c54d9314282f47fd748e5f38..310a6b14a12e9c7ba04ee7178aae509db368f92f 100644
|
|
--- a/src/main/java/net/minecraft/world/level/Explosion.java
|
|
+++ b/src/main/java/net/minecraft/world/level/Explosion.java
|
|
@@ -589,6 +589,12 @@ public class Explosion {
|
|
}
|
|
}
|
|
|
|
+ // Sakura start
|
|
+ if (!level.sakuraConfig().cannons.explosion.explosionsDropItems) {
|
|
+ objectarraylist.clear();
|
|
+ }
|
|
+ // Sakura end
|
|
+
|
|
objectlistiterator = objectarraylist.iterator();
|
|
|
|
while (objectlistiterator.hasNext()) {
|