mirror of
https://github.com/LeavesMC/Leaves.git
synced 2026-01-04 15:41:31 +00:00
--------- Co-authored-by: MC_XiaoHei <xiaohei.xor7studio@foxmail.com> Co-authored-by: Bluemangoo <chenfy2006@qq.com>
24 lines
975 B
Diff
24 lines
975 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: violetc <58360096+s-yh-china@users.noreply.github.com>
|
|
Date: Thu, 3 Aug 2023 14:21:55 +0800
|
|
Subject: [PATCH] Force peaceful mode switch
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java
|
|
index 97f97ea5c6aa513c439f86a9c82821e0f7d9cd1e..14d0e02673a37cd991c5c8cd34dd45b7cadde53a 100644
|
|
--- a/src/main/java/org/bukkit/World.java
|
|
+++ b/src/main/java/org/bukkit/World.java
|
|
@@ -4317,6 +4317,12 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
|
|
void setSendViewDistance(int viewDistance);
|
|
// Paper end - view distance api
|
|
|
|
+ // Leaves start - unsupported settings
|
|
+ public void setPeacefulModeSwitchTick(int tick);
|
|
+
|
|
+ public int getPeacefulModeSwitchTick();
|
|
+ // Leaves end - unsupported settings
|
|
+
|
|
/**
|
|
* Gets all generated structures that intersect the chunk at the given
|
|
* coordinates. <br>
|