Skip to content

Commit

Permalink
Add a config option to disable waypoint compass copying
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMiner committed Jul 7, 2019
1 parent 00d4567 commit fa49a59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main/java/knightminer/inspirations/common/Config.java
Expand Up @@ -218,6 +218,7 @@ public class Config {
public static boolean enableWaypointCompass = true;
public static boolean dyeWaypointCompass = true;
public static boolean craftWaypointCompass = true;
public static boolean copyWaypointCompass = true;
public static boolean waypointCompassAdvTooltip = true;
public static boolean waypointCompassCrossDimension = true;

Expand Down Expand Up @@ -439,6 +440,7 @@ public static void preInit(FMLPreInitializationEvent event) {
craftWaypointCompass = configFile.getBoolean("craft", "tools.waypointCompass", craftWaypointCompass, "If true, waypoint compasses can be crafted using iron and a blaze rod. If false, they are obtained by using a vanilla compass on a beacon.") && enableWaypointCompass;
waypointCompassAdvTooltip = configFile.getBoolean("advTooltip", "tools.waypointCompass", waypointCompassAdvTooltip, "If true, waypoint compasses show the position target in the advanced item tooltip. Disable for packs that disable coordinates.");
waypointCompassCrossDimension = configFile.getBoolean("crossDimension", "tools.waypointCompass", waypointCompassCrossDimension, "If true, waypoint compasses work across dimensions. The coordinates between the overworld and nether will be adjusted, allowing for portal syncing.");
copyWaypointCompass = configFile.getBoolean("copy", "tools.waypointCompass", copyWaypointCompass, "If true, you can copy the position of one waypoint compass to another in a crafting table, similarly to maps or compasses") && enableWaypointCompass;
}

// tweaks
Expand Down
Expand Up @@ -151,7 +151,7 @@ public void registerEntities(Register<EntityEntry> event) {
@SubscribeEvent
public void registerRecipes(Register<IRecipe> event) {
IForgeRegistry<IRecipe> r = event.getRegistry();
if(Config.enableWaypointCompass) {
if(Config.copyWaypointCompass) {
register(r, new WaypointCompassCopyRecipe(), "waypoint_compass_copy");
}
}
Expand Down

0 comments on commit fa49a59

Please sign in to comment.