Skip to content

Commit

Permalink
Apply Replay Mod API, it's work?
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yh-china committed May 19, 2024
1 parent b2332cd commit ddbeba7
Show file tree
Hide file tree
Showing 6 changed files with 119 additions and 114 deletions.
15 changes: 0 additions & 15 deletions patches/api/0009-Placeholder-for-Replay-Mod-API.patch

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,25 @@ Date: Sat, 5 Aug 2023 09:10:59 +0800
Subject: [PATCH] Replay Mod API


diff --git a/.gitignore b/.gitignore
index 9764fa643039f215627c20a33ca70c9e36b2d599..97e78e27ee0eea2c8b24886eeb19164d552323fe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -38,4 +38,3 @@
# vs code
/.vscode
/.factorypath
-
diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java
index f7031da9e3eb310b415cbb5b46f6f39846e43a3c..b068de949e21525d79223e607fafd43b030a8294 100644
index 01bcf4264e7599ebcc6bc74962f65bb32b159d76..8b6e8a1c9c0654786f759a263959ca84d2d5bbc6 100644
--- a/src/main/java/org/bukkit/Bukkit.java
+++ b/src/main/java/org/bukkit/Bukkit.java
@@ -62,6 +62,7 @@ import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import io.papermc.paper.util.JarManifests; // Paper
import top.leavesmc.leaves.entity.BotManager;
+import top.leavesmc.leaves.entity.PhotographerManager;

/**
* Represents the Bukkit core, for version and Server singleton handling
@@ -2917,6 +2918,11 @@ public final class Bukkit {
@@ -2913,6 +2913,11 @@ public final class Bukkit {
return server.getBotManager();
}
// Leaves end - Bot API
+ // Leaves start - Photographer API
+ public static @NotNull PhotographerManager getPhotographerManager() {
+ public static @NotNull top.leavesmc.leaves.entity.PhotographerManager getPhotographerManager() {
+ return server.getPhotographerManager();
+ }
+ // Leaves end - Photographer API
Expand Down
15 changes: 0 additions & 15 deletions patches/server/0104-Placeholder-for-Replay-Mod-API.patch

This file was deleted.

Loading

0 comments on commit ddbeba7

Please sign in to comment.