Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

版本初始化定义 #110

Merged
merged 3 commits into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions buildSrc/src/main/groovy/multi-set-neoforge.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import java.time.LocalDateTime
import java.time.LocalTime
import java.util.stream.Stream

plugins {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ mod_id=wild_wind
# The human-readable display name for the mod.
mod_name=Wild Wind Mod
mod_license=LGPL-2.1
mod_version=1.0.0
mod_version=1.0.0-1A1W
mod_group_id=org.polaris_bear.wild_wind
mod_authors=wdog5734,baka4n,Viola-Siemens
mod_description=Example mod description.\n\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import net.minecraft.data.loot.BlockLootSubProvider;
import net.minecraft.world.flag.FeatureFlags;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.Items;
import net.minecraft.world.level.block.Block;
import org.polaris2023.wild_wind.common.init.ModBlocks;
import org.polaris2023.wild_wind.common.init.ModInitializer;
Expand All @@ -22,7 +23,7 @@ public ModBlockLootSubProvider(HolderLookup.Provider registries) {

@Override
protected Iterable<Block> getKnownBlocks() {
return ModInitializer.blocks().stream().map(holder -> (Block)holder.get()).toList();
return ModInitializer.blocks().stream().filter(holder -> !holder.get().asItem().equals(Items.AIR)).map(holder -> (Block)holder.get()).toList();
}

@Override
Expand Down
Loading