mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-28 19:39:22 +00:00
24 lines
951 B
Diff
24 lines
951 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 efa2043e044b0e461780e808c347d6ec00f6da0a..359e96f0fc9b9a909351478a0f30e441004c9b3e 100644
|
|
--- a/src/main/java/org/bukkit/World.java
|
|
+++ b/src/main/java/org/bukkit/World.java
|
|
@@ -4240,6 +4240,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
|
|
+
|
|
/**
|
|
* Represents various map environment types that a world may be
|
|
*/
|