summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityMinecartCommandBlock.patch
blob: e6ac3a1cfbe611233372c62374034a825bed3318 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/net/minecraft/server/EntityMinecartCommandBlock.java
+++ b/net/minecraft/server/EntityMinecartCommandBlock.java
@@ -92,5 +92,12 @@
         public CommandListenerWrapper getWrapper() {
             return new CommandListenerWrapper(this, new Vec3D(EntityMinecartCommandBlock.this.locX, EntityMinecartCommandBlock.this.locY, EntityMinecartCommandBlock.this.locZ), EntityMinecartCommandBlock.this.aO(), this.d(), 2, this.getName().getString(), EntityMinecartCommandBlock.this.getScoreboardDisplayName(), this.d().getMinecraftServer(), EntityMinecartCommandBlock.this);
         }
+
+        // CraftBukkit start
+        @Override
+        public org.bukkit.command.CommandSender getBukkitSender(CommandListenerWrapper wrapper) {
+            return (org.bukkit.craftbukkit.entity.CraftMinecartCommand) EntityMinecartCommandBlock.this.getBukkitEntity();
+        }
+        // CraftBukkit end
     }
 }