3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-21 05:50:05 +01:00
Paper/nms-patches/EntityMinecartCommandBlock.patch

16 Zeilen
909 B
Diff

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/EntityMinecartCommandBlock.java
+++ b/net/minecraft/server/EntityMinecartCommandBlock.java
2019-04-23 04:00:00 +02:00
@@ -104,5 +104,12 @@
2018-07-15 02:00:00 +02:00
public CommandListenerWrapper getWrapper() {
2019-06-21 12:00:00 +02:00
return new CommandListenerWrapper(this, new Vec3D(EntityMinecartCommandBlock.this.locX, EntityMinecartCommandBlock.this.locY, EntityMinecartCommandBlock.this.locZ), EntityMinecartCommandBlock.this.aU(), this.d(), 2, this.getName().getString(), EntityMinecartCommandBlock.this.getScoreboardDisplayName(), this.d().getMinecraftServer(), EntityMinecartCommandBlock.this);
2018-07-15 02:00:00 +02:00
}
+
+ // CraftBukkit start
+ @Override
+ public org.bukkit.command.CommandSender getBukkitSender(CommandListenerWrapper wrapper) {
+ return (org.bukkit.craftbukkit.entity.CraftMinecartCommand) EntityMinecartCommandBlock.this.getBukkitEntity();
2015-02-26 23:41:06 +01:00
+ }
2018-07-15 02:00:00 +02:00
+ // CraftBukkit end
}
}