mirror of
https://github.com/Samsuik/Sakura.git
synced 2026-01-06 15:41:49 +00:00
drop old redstone cache implementation
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 958cb715479d527a0833d1abee0852b2cc65b0ff..9dc47e2a61196cff74726972afe392ac1983ec84 100644
|
||||
--- a/src/main/java/net/minecraft/world/level/Explosion.java
|
||||
+++ b/src/main/java/net/minecraft/world/level/Explosion.java
|
||||
@@ -913,6 +913,11 @@ public class Explosion {
|
||||
this.level.densityCache.invalidate();
|
||||
}
|
||||
// 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