mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-04 06:02:12 -07:00
Update to Minecraft 1.13-pre7
This commit is contained in:
@@ -1,19 +1,11 @@
|
||||
--- a/net/minecraft/server/CustomFunction.java
|
||||
+++ b/net/minecraft/server/CustomFunction.java
|
||||
@@ -122,7 +122,15 @@
|
||||
}
|
||||
@@ -45,7 +45,7 @@
|
||||
}
|
||||
|
||||
public void a(CustomFunctionData customfunctiondata, ICommandListener icommandlistener, ArrayDeque<CustomFunctionData.a> arraydeque, int i) {
|
||||
- customfunctiondata.a().a(icommandlistener, this.a);
|
||||
+ // CraftBukkit start
|
||||
+ org.bukkit.command.CommandSender sender;
|
||||
+ if (icommandlistener instanceof CustomFunctionData.CustomFunctionListener) {
|
||||
+ sender = ((CustomFunctionData.CustomFunctionListener) icommandlistener).sender;
|
||||
+ } else {
|
||||
+ sender = CommandBlockListenerAbstract.unwrapSender(icommandlistener);
|
||||
+ }
|
||||
+ CommandBlockListenerAbstract.executeSafely(icommandlistener, sender, this.a);
|
||||
+ // CraftBukkit end
|
||||
}
|
||||
try {
|
||||
- ParseResults parseresults = customfunctiondata.a().getCommandDispatcher().a().parse(s, customfunctiondata.f());
|
||||
+ ParseResults parseresults = customfunctiondata.d().parse(s, customfunctiondata.f()); // CraftBukkit
|
||||
|
||||
public String toString() {
|
||||
if (parseresults.getReader().canRead()) {
|
||||
if (parseresults.getExceptions().size() == 1) {
|
||||
|
Reference in New Issue
Block a user