summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityMinecartCommandBlock.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/EntityMinecartCommandBlock.patch')
-rw-r--r--nms-patches/EntityMinecartCommandBlock.patch14
1 files changed, 7 insertions, 7 deletions
diff --git a/nms-patches/EntityMinecartCommandBlock.patch b/nms-patches/EntityMinecartCommandBlock.patch
index 33aa4bcd..811b2567 100644
--- a/nms-patches/EntityMinecartCommandBlock.patch
+++ b/nms-patches/EntityMinecartCommandBlock.patch
@@ -1,12 +1,12 @@
--- a/net/minecraft/server/EntityMinecartCommandBlock.java
+++ b/net/minecraft/server/EntityMinecartCommandBlock.java
-@@ -3,6 +3,9 @@
- public class EntityMinecartCommandBlock extends EntityMinecartAbstract {
-
- private final CommandBlockListenerAbstract a = new CommandBlockListenerAbstract() {
+@@ -5,6 +5,9 @@
+ private static final DataWatcherObject<String> a = DataWatcher.a(EntityMinecartCommandBlock.class, DataWatcherRegistry.d);
+ private static final DataWatcherObject<IChatBaseComponent> b = DataWatcher.a(EntityMinecartCommandBlock.class, DataWatcherRegistry.e);
+ private final CommandBlockListenerAbstract c = 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()));
+ public void i() {
+ EntityMinecartCommandBlock.this.getDataWatcher().set(EntityMinecartCommandBlock.a, this.getCommand());
+ EntityMinecartCommandBlock.this.getDataWatcher().set(EntityMinecartCommandBlock.b, this.l());