mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 19:59:42 +00:00
Initial port to 1.18
Co-authored-by: David Quintana <[email protected]> Co-authored-by: SizableShrimp <[email protected]>
This commit is contained in:
1 parent
be0a6819ac
commit
40a174310d
538 files changed
+3322
-9030
No files matched your search
@@ -32,7 +32,7 @@ import net.minecraft.world.entity.npc.VillagerTrades.ItemListing;
|
||||
import net.minecraft.core.NonNullList;
|
||||
import net.minecraftforge.event.village.VillagerTradesEvent;
|
||||
import net.minecraftforge.event.village.WandererTradesEvent;
|
||||
import net.minecraftforge.fmlserverevents.FMLServerAboutToStartEvent;
|
||||
import net.minecraftforge.event.server.ServerAboutToStartEvent;
|
||||
import net.minecraftforge.registries.ForgeRegistries;
|
||||
|
||||
public class VillagerTradingManager
|
||||
@@ -52,7 +52,7 @@ public class VillagerTradingManager
|
||||
VillagerTrades.WANDERING_TRADER_TRADES.int2ObjectEntrySet().forEach(e -> WANDERER_TRADES.put(e.getIntKey(), Arrays.copyOf(e.getValue(), e.getValue().length)));
|
||||
}
|
||||
|
||||
static void loadTrades(FMLServerAboutToStartEvent e)
|
||||
static void loadTrades(ServerAboutToStartEvent e)
|
||||
{
|
||||
postWandererEvent();
|
||||
postVillagerEvents();
|
||||
|
||||
Reference in new issue
Block a user