summaryrefslogtreecommitdiffstats
path: root/nms-patches/TileEntityCommand.patch
blob: 04405163be129bf42e0db2b0e39d21c7698ba9e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/net/minecraft/server/TileEntityCommand.java
+++ b/net/minecraft/server/TileEntityCommand.java
@@ -7,6 +7,9 @@
     private boolean g;
     private boolean h;
     private final CommandBlockListenerAbstract i = new CommandBlockListenerAbstract() {
+        {
+            sender = new org.bukkit.craftbukkit.command.CraftBlockCommandSender(this); // CraftBukkit - add sender
+        }
         public BlockPosition getChunkCoordinates() {
             return TileEntityCommand.this.position;
         }