mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-20 07:19:33 +00:00
22 lines
1.0 KiB
Diff
22 lines
1.0 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Samsuik <kfian294ma4@gmail.com>
|
|
Date: Tue, 11 Jun 2024 13:56:47 +0100
|
|
Subject: [PATCH] Add consistent explosion radius api
|
|
|
|
|
|
diff --git a/src/main/java/me/samsuik/sakura/local/LocalValueKey.java b/src/main/java/me/samsuik/sakura/local/LocalValueKey.java
|
|
index 098ce4d0356fb1dddbd4e34c02f77848da1fb546..34434bf1fa8018bd79a0af8ae0f8e7ca24da6ec6 100644
|
|
--- a/src/main/java/me/samsuik/sakura/local/LocalValueKey.java
|
|
+++ b/src/main/java/me/samsuik/sakura/local/LocalValueKey.java
|
|
@@ -25,6 +25,10 @@ public record LocalValueKey<T>(NamespacedKey key, Supplier<T> defaultSupplier) {
|
|
new NamespacedKey("sakura", "redstone-implementation"), () -> RedstoneImplementation.VANILLA
|
|
);
|
|
|
|
+ public static final LocalValueKey<Boolean> CONSISTENT_EXPLOSION_RADIUS = new LocalValueKey<>(
|
|
+ new NamespacedKey("sakura", "consistent-radius"), () -> false
|
|
+ );
|
|
+
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) return true;
|