geforkt von Mirrors/Paper
Made crafted maps fire MapInitializeEvent. Fixes BUKKIT-143
Dieser Commit ist enthalten in:
Ursprung
274e8a141a
Commit
497a0e247b
@ -236,6 +236,11 @@ public class ItemWorldMap extends ItemWorldMapBase {
|
|||||||
worldmap.scale = 3;
|
worldmap.scale = 3;
|
||||||
worldmap.map = (byte) ((WorldServer) world).dimension; // CraftBukkit - fixes Bukkit multiworld maps.
|
worldmap.map = (byte) ((WorldServer) world).dimension; // CraftBukkit - fixes Bukkit multiworld maps.
|
||||||
worldmap.a();
|
worldmap.a();
|
||||||
|
|
||||||
|
// CraftBukkit start
|
||||||
|
MapInitializeEvent event = new MapInitializeEvent(worldmap.mapView);
|
||||||
|
Bukkit.getServer().getPluginManager().callEvent(event);
|
||||||
|
// CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
public Packet c(ItemStack itemstack, World world, EntityHuman entityhuman) {
|
public Packet c(ItemStack itemstack, World world, EntityHuman entityhuman) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren