From cccc98f1569542070aef793e4928bc4dacba33c2 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Fri, 5 Jan 2024 11:29:48 +1100 Subject: [PATCH] Added support for adding wandering villager trades --- .../main/java/toughasnails/core/ToughAsNails.java | 3 +++ .../java/toughasnails/init/ModVillagerTrades.java | 14 ++++++++++++++ gradle.properties | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 common/src/main/java/toughasnails/init/ModVillagerTrades.java diff --git a/common/src/main/java/toughasnails/core/ToughAsNails.java b/common/src/main/java/toughasnails/core/ToughAsNails.java index 53e5ef35..de799bee 100644 --- a/common/src/main/java/toughasnails/core/ToughAsNails.java +++ b/common/src/main/java/toughasnails/core/ToughAsNails.java @@ -65,6 +65,9 @@ private static void addHandlers() EventManager.addListener(ThirstHandler::onPlayerUseItem); EventManager.addListener(ThirstHandler::onUseBlock); + // Misc handlers + EventManager.addListener(ModVillagerTrades::addWanderingVillagerTrades); + if (Environment.isClient()) { addClientHandlers(); diff --git a/common/src/main/java/toughasnails/init/ModVillagerTrades.java b/common/src/main/java/toughasnails/init/ModVillagerTrades.java new file mode 100644 index 00000000..0ce3a77b --- /dev/null +++ b/common/src/main/java/toughasnails/init/ModVillagerTrades.java @@ -0,0 +1,14 @@ +/******************************************************************************* + * Copyright 2023, the Glitchfiend Team. + * All rights reserved. + ******************************************************************************/ +package toughasnails.init; + +import glitchcore.event.village.WandererTradesEvent; + +public class ModVillagerTrades +{ + public static void addWanderingVillagerTrades(WandererTradesEvent event) + { + } +} diff --git a/gradle.properties b/gradle.properties index 07bcc91a..a6a6bdbb 100644 --- a/gradle.properties +++ b/gradle.properties @@ -40,5 +40,5 @@ org.gradle.daemon=false # Dependencies nightconfig_version=3.6.7 -glitchcore_version=1.0.0.37 +glitchcore_version=1.0.0.38 serene_seasons_version=9.3.0.0