From 497a0e247bb10fb8bb51325ef365ea05b4ee1281 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Wed, 8 Feb 2012 05:35:39 -0500 Subject: [PATCH] Made crafted maps fire MapInitializeEvent. Fixes BUKKIT-143 --- src/main/java/net/minecraft/server/ItemWorldMap.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/net/minecraft/server/ItemWorldMap.java b/src/main/java/net/minecraft/server/ItemWorldMap.java index 848e6670eb..ab4937c891 100644 --- a/src/main/java/net/minecraft/server/ItemWorldMap.java +++ b/src/main/java/net/minecraft/server/ItemWorldMap.java @@ -236,6 +236,11 @@ public class ItemWorldMap extends ItemWorldMapBase { worldmap.scale = 3; worldmap.map = (byte) ((WorldServer) world).dimension; // CraftBukkit - fixes Bukkit multiworld maps. 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) {