mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-20 15:29:33 +00:00
The player velocity was not being talied correctly, and velocity was not sent when explosion effects were disabled in fps settings.
23 lines
1.0 KiB
Diff
23 lines
1.0 KiB
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 1482e80f30d2b0c34acd509dd3ea8f15a78aae95..b5eaab69d69ef69de8ba426c7711b3e775b82f08 100644
|
|
--- a/src/main/java/net/minecraft/world/level/Explosion.java
|
|
+++ b/src/main/java/net/minecraft/world/level/Explosion.java
|
|
@@ -948,6 +948,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()) {
|