mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-23 00:39:20 +00:00
Drop useless reduce movement allocations patch
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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 6fbdbaa399c9381ea6906e7af7a7a29a4adb1666..cfcbbea230982cfa0f496eebcdc660c859650199 100644
|
||||
--- a/src/main/java/net/minecraft/world/level/Explosion.java
|
||||
+++ b/src/main/java/net/minecraft/world/level/Explosion.java
|
||||
@@ -911,6 +911,11 @@ public class Explosion {
|
||||
this.level.densityCache.clear(-1);
|
||||
}
|
||||
// Sakura end - explosion density cache
|
||||
+ // Sakura start - config for explosions dropping items
|
||||
+ if (!level.sakuraConfig().cannons.explosion.explosionsDropItems) {
|
||||
+ list.clear();
|
||||
+ }
|
||||
+ // Sakura end - config for explosions dropping items
|
||||
Iterator iterator = list.iterator();
|
||||
|
||||
while (iterator.hasNext()) {
|
||||
Reference in New Issue
Block a user