mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-29 19:59:08 +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 7ee530df4c57e400766056e664622e2847f3fe5a..c3987012b1686354c68ef3e49d465a97e121db1e 100644
|
|
--- a/src/main/java/net/minecraft/world/level/Explosion.java
|
|
+++ b/src/main/java/net/minecraft/world/level/Explosion.java
|
|
@@ -912,6 +912,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()) {
|