Skip to content

Commit

Permalink
Resolve bug where copy/paste breaks Block/Item filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Direwolf20-MC committed Oct 9, 2024
1 parent 8d16b19 commit 7e853f7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ default void saveFilterSettings(CompoundTag tag) {
default void loadFilterSettings(CompoundTag tag) {
getFilterData().allowlist = tag.getBoolean("allowlist");
getFilterData().compareNBT = tag.getBoolean("compareNBT");
getFilterData().blockItemFilter = tag.getInt("blockitemfilter");
int blockItemFilter = tag.getInt("blockitemfilter");
if (blockItemFilter != -1 && getFilterData().blockItemFilter != -1)
getFilterData().blockItemFilter = blockItemFilter;
}

default void setFilterSettings(FilterData filterData) {
Expand Down

0 comments on commit 7e853f7

Please sign in to comment.