mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 03:25:15 +01:00
Made crafted maps fire MapInitializeEvent. Fixes BUKKIT-143
This commit is contained in:
parent
274e8a141a
commit
497a0e247b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user