geforkt von Mirrors/Paper
SPIGOT-4182: Implement cursor captions
Dieser Commit ist enthalten in:
Ursprung
4d0e2b7d88
Commit
2ba567f29b
@ -4,6 +4,7 @@ import net.minecraft.server.WorldMap;
|
|||||||
import net.minecraft.server.MapIcon;
|
import net.minecraft.server.MapIcon;
|
||||||
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
|
import org.bukkit.craftbukkit.util.CraftChatMessage;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.map.MapCanvas;
|
import org.bukkit.map.MapCanvas;
|
||||||
import org.bukkit.map.MapCursorCollection;
|
import org.bukkit.map.MapCursorCollection;
|
||||||
@ -42,7 +43,7 @@ public class CraftMapRenderer extends MapRenderer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MapIcon decoration = (MapIcon) worldMap.decorations.get(key);
|
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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren