3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-24 15:20:11 +01:00
Paper/nms-patches/TileEntityCommand.patch

17 Zeilen
653 B
Diff

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/TileEntityCommand.java
+++ b/net/minecraft/server/TileEntityCommand.java
2018-07-15 02:00:00 +02:00
@@ -9,6 +9,13 @@
2019-04-23 04:00:00 +02:00
private boolean c;
2016-02-29 22:32:46 +01:00
private boolean g;
2018-07-15 02:00:00 +02:00
private final CommandBlockListenerAbstract h = new CommandBlockListenerAbstract() {
+ // CraftBukkit start
+ @Override
+ public org.bukkit.command.CommandSender getBukkitSender(CommandListenerWrapper wrapper) {
+ return new org.bukkit.craftbukkit.command.CraftBlockCommandSender(wrapper, TileEntityCommand.this);
2015-02-26 23:41:06 +01:00
+ }
2018-07-15 02:00:00 +02:00
+ // CraftBukkit end
+
2019-04-23 04:00:00 +02:00
@Override
2018-07-15 02:00:00 +02:00
public void setCommand(String s) {
super.setCommand(s);