diff options
author | md_5 <git@md-5.net> | 2018-07-29 15:10:08 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-07-29 15:10:08 +1000 |
commit | 2ba567f29b5b4acf0f4c710171bb530888124172 (patch) | |
tree | 3646e3751365404b834147047eb9a5bad2c9e878 /src/main/java/org | |
parent | 4d0e2b7d88ab096f553f2c7a60aa7c4d1f2474ca (diff) | |
download | craftbukkit-2ba567f29b5b4acf0f4c710171bb530888124172.tar craftbukkit-2ba567f29b5b4acf0f4c710171bb530888124172.tar.gz craftbukkit-2ba567f29b5b4acf0f4c710171bb530888124172.tar.lz craftbukkit-2ba567f29b5b4acf0f4c710171bb530888124172.tar.xz craftbukkit-2ba567f29b5b4acf0f4c710171bb530888124172.zip |
SPIGOT-4182: Implement cursor captions
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/map/CraftMapRenderer.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/map/CraftMapRenderer.java b/src/main/java/org/bukkit/craftbukkit/map/CraftMapRenderer.java index 0a3eb3b5..e6c6a675 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())); } } |