mirror of
https://github.com/Samsuik/Sakura.git
synced 2026-01-03 22:16:38 +00:00
Start on updating 1.21.4
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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()) {
|
||||
Reference in New Issue
Block a user