Skip to content

Commit

Permalink
Changed some default values
Browse files Browse the repository at this point in the history
  • Loading branch information
sarhatabaot committed Oct 31, 2024
1 parent 240aa7a commit b9bddf3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.github.sarhatabaot.farmassistreboot.tasks.ReplantTask;
import de.tr7zw.changeme.nbtapi.NBT;
import de.tr7zw.changeme.nbtapi.NBTItem;
import de.tr7zw.changeme.nbtapi.iface.ReadableItemNBT;
import me.clip.placeholderapi.PlaceholderAPI;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
Expand Down Expand Up @@ -63,9 +64,7 @@ public static int inventoryContainsSeeds(@NotNull PlayerInventory playerInventor
})
.filter(p -> {
if (FarmAssistConfig.IGNORE_NBT) {
return NBT.get(p.getValue(), r -> {
return r.hasNBTData();
});
return NBT.get(p.getValue(), ReadableItemNBT::hasNBTData);
}
return true;
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public FarmAssistConfig(final @NotNull FarmAssistReboot plugin) {
ENABLED_PER_WORLD = config.getBoolean("worlds.enable-per-world",false);
ENABLED_WORLDS = getWorlds();
ACTIVE_LANGUAGE = config.getString("language", "en");
IGNORE_RENAMED = config.getBoolean("ignore-seeds.renamed", true);
IGNORE_NBT = config.getBoolean("ignore-seeds.nbt", true);
IGNORE_RENAMED = config.getBoolean("ignore-seeds.renamed", false);
IGNORE_NBT = config.getBoolean("ignore-seeds.nbt", false);
NO_SEEDS = config.getBoolean("no-seeds", false);
DISABLE_LATEST_VERSION = config.getBoolean("disable-latest-version", false);
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ disable-latest-version: false
# take renamed/seeds with nbt seeds from your inventory when
# replanting.
ignore-seeds:
renamed: true
nbt: true
renamed: false
nbt: false
# Setting this to true will make it so players are no longer required to have seeds in their inventory to replant.
# Want to have this per player? Set this to false and give them the permission "farmassist.noseeds"
no-seeds: false
Expand Down

0 comments on commit b9bddf3

Please sign in to comment.