From 2ba567f29b5b4acf0f4c710171bb530888124172 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 29 Jul 2018 15:10:08 +1000 Subject: [PATCH] SPIGOT-4182: Implement cursor captions --- src/main/java/org/bukkit/craftbukkit/map/CraftMapRenderer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/map/CraftMapRenderer.java b/src/main/java/org/bukkit/craftbukkit/map/CraftMapRenderer.java index 0a3eb3b58e..e6c6a675d4 100644 --- a/src/main/java/org/bukkit/craftbukkit/map/CraftMapRenderer.java +++ b/src/main/java/org/bukkit/craftbukkit/map/CraftMapRenderer.java @@ -4,6 +4,7 @@ import net.minecraft.server.WorldMap; import net.minecraft.server.MapIcon; import org.bukkit.Bukkit; +import org.bukkit.craftbukkit.util.CraftChatMessage; import org.bukkit.entity.Player; import org.bukkit.map.MapCanvas; import org.bukkit.map.MapCursorCollection; @@ -42,7 +43,7 @@ public class CraftMapRenderer extends MapRenderer { } MapIcon decoration = (MapIcon) worldMap.decorations.get(key); - cursors.addCursor(decoration.getX(), decoration.getY(), (byte) (decoration.getRotation() & 15), decoration.b().a()); + cursors.addCursor(decoration.getX(), decoration.getY(), (byte) (decoration.getRotation() & 15), decoration.b().a(), true, CraftChatMessage.fromComponent(decoration.g())); } }