Skip to content

Commit

Permalink
Added support for adding wandering villager trades
Browse files Browse the repository at this point in the history
  • Loading branch information
Adubbz committed Jan 5, 2024
1 parent 3cb2923 commit cccc98f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
3 changes: 3 additions & 0 deletions common/src/main/java/toughasnails/core/ToughAsNails.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
14 changes: 14 additions & 0 deletions common/src/main/java/toughasnails/init/ModVillagerTrades.java
Original file line number Diff line number Diff line change
@@ -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)
{
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cccc98f

Please sign in to comment.