Paper/nms-patches/EntityMinecartCommandBlock.patch

13 lines
723 B
Diff
Raw Normal View History

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/EntityMinecartCommandBlock.java
+++ b/net/minecraft/server/EntityMinecartCommandBlock.java
2015-02-26 23:41:06 +01:00
@@ -3,6 +3,9 @@
public class EntityMinecartCommandBlock extends EntityMinecartAbstract {
private final CommandBlockListenerAbstract a = new CommandBlockListenerAbstract() {
+ {
+ this.sender = (org.bukkit.craftbukkit.entity.CraftMinecartCommand) EntityMinecartCommandBlock.this.getBukkitEntity(); // CraftBukkit - Set the sender
+ }
public void h() {
EntityMinecartCommandBlock.this.getDataWatcher().watch(23, this.getCommand());
EntityMinecartCommandBlock.this.getDataWatcher().watch(24, IChatBaseComponent.ChatSerializer.a(this.k()));