File tree Expand file tree Collapse file tree
invui-core/src/main/java/xyz/xenondevs/invui/window Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313import xyz .xenondevs .inventoryaccess .map .MapPatch ;
1414import xyz .xenondevs .invui .gui .AbstractGui ;
1515import xyz .xenondevs .invui .gui .Gui ;
16+ import xyz .xenondevs .invui .item .ItemWrapper ;
17+ import xyz .xenondevs .invui .item .impl .SimpleItem ;
1618import xyz .xenondevs .invui .util .MathUtils ;
1719
1820import java .util .List ;
@@ -59,7 +61,7 @@ public void resetMap() {
5961 MapMeta mapMeta = (MapMeta ) map .getItemMeta ();
6062 mapMeta .setMapId (mapId );
6163 map .setItemMeta (mapMeta );
62- cartographyInventory .setItem (0 , map );
64+ getGui () .setItem (0 , new SimpleItem ( new ItemWrapper ( map )) );
6365 }
6466
6567 @ Override
Original file line number Diff line number Diff line change 1313import xyz .xenondevs .inventoryaccess .map .MapPatch ;
1414import xyz .xenondevs .invui .gui .AbstractGui ;
1515import xyz .xenondevs .invui .gui .Gui ;
16+ import xyz .xenondevs .invui .item .impl .SimpleItem ;
1617import xyz .xenondevs .invui .util .MathUtils ;
1718
1819import java .util .List ;
@@ -59,7 +60,7 @@ public void resetMap() {
5960 MapMeta mapMeta = (MapMeta ) map .getItemMeta ();
6061 mapMeta .setMapId (mapId );
6162 map .setItemMeta (mapMeta );
62- cartographyInventory .setItem (0 , map );
63+ getGuis ()[ 0 ] .setItem (0 , new SimpleItem ( map ) );
6364 }
6465
6566 @ Override
You can’t perform that action at this time.
0 commit comments