0
0
mirror of https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git synced 2024-11-25 16:16:14 +00:00
craftbukkit/nms-patches/net/minecraft/world/entity/vehicle/EntityMinecartCommandBlock.patch
2024-10-23 02:15:00 +11:00

16 lines
603 B
Diff

--- a/net/minecraft/world/entity/vehicle/EntityMinecartCommandBlock.java
+++ b/net/minecraft/world/entity/vehicle/EntityMinecartCommandBlock.java
@@ -140,5 +140,12 @@
public boolean isValid() {
return !EntityMinecartCommandBlock.this.isRemoved();
}
+
+ // CraftBukkit start
+ @Override
+ public org.bukkit.command.CommandSender getBukkitSender(CommandListenerWrapper wrapper) {
+ return (org.bukkit.craftbukkit.entity.CraftMinecartCommand) EntityMinecartCommandBlock.this.getBukkitEntity();
+ }
+ // CraftBukkit end
}
}