mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-21 07:49:29 +00:00
23 lines
1020 B
Diff
23 lines
1020 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 6f610de34ac165d2e9a2d353eee46f26da2c22c1..4047610d0a01ce58f023da9a810ea3f5320892e7 100644
|
|
--- a/src/main/java/net/minecraft/world/level/Explosion.java
|
|
+++ b/src/main/java/net/minecraft/world/level/Explosion.java
|
|
@@ -626,6 +626,11 @@ public class Explosion {
|
|
}
|
|
}
|
|
|
|
+ // Sakura start - config for explosions dropping items
|
|
+ if (!this.level.sakuraConfig().cannons.explosion.explosionsDropItems) {
|
|
+ objectarraylist.clear();
|
|
+ }
|
|
+ // Sakura end - config for explosions dropping items
|
|
objectlistiterator = objectarraylist.iterator();
|
|
|
|
while (objectlistiterator.hasNext()) {
|