SPIGOT-3373: Fix /execute in gameloop functions
By: md_5 <git@md-5.net>
This commit is contained in:
parent
622d0477c5
commit
4d6887228e
3 changed files with 23 additions and 5 deletions
|
@ -1,6 +1,22 @@
|
|||
--- a/net/minecraft/server/CustomFunctionData.java
|
||||
+++ b/net/minecraft/server/CustomFunctionData.java
|
||||
@@ -33,7 +33,7 @@
|
||||
@@ -23,7 +23,14 @@
|
||||
private CustomFunction f;
|
||||
private final ArrayDeque<CustomFunctionData.a> g = new ArrayDeque();
|
||||
private boolean h = false;
|
||||
- private final ICommandListener i = new ICommandListener() {
|
||||
+ // CraftBukkit start
|
||||
+ private final ICommandListener i = new CustomFunctionListener();
|
||||
+
|
||||
+ public class CustomFunctionListener implements ICommandListener {
|
||||
+
|
||||
+ protected org.bukkit.command.CommandSender sender = new org.bukkit.craftbukkit.command.CraftFunctionCommandSender(this);
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
public String getName() {
|
||||
return CustomFunctionData.this.e;
|
||||
}
|
||||
@@ -33,7 +40,7 @@
|
||||
}
|
||||
|
||||
public World getWorld() {
|
||||
|
@ -9,7 +25,7 @@
|
|||
}
|
||||
|
||||
public MinecraftServer C_() {
|
||||
@@ -57,7 +57,7 @@
|
||||
@@ -57,7 +64,7 @@
|
||||
}
|
||||
|
||||
public int c() {
|
||||
|
@ -18,7 +34,7 @@
|
|||
}
|
||||
|
||||
public Map<MinecraftKey, CustomFunction> d() {
|
||||
@@ -65,7 +65,7 @@
|
||||
@@ -65,7 +72,7 @@
|
||||
}
|
||||
|
||||
public void e() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue