Skip to content

Commit

Permalink
add null check for AdvancedBlockPattern
Browse files Browse the repository at this point in the history
  • Loading branch information
liansishen committed Sep 22, 2024
1 parent 34d34df commit cfa0f12
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ loom.platform=forge
quilt_mappings=23

# Mod Properties
mod_version=1.3.5
mod_version=1.3.5.a
maven_group=com.hepdd.gtmthings
archives_base_name=gtmthings
mod_id=gtmthings
mod_name=GTMThings
mod_url=
mod_url=https://www.curseforge.com/minecraft/mc-mods/gtmthings
mod_author=liansishen
mod_license=LGPLv3.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public void autoBuild(Player player, MultiblockState worldState,
limit.candidates == null ? null : limit.candidates.get());
}
for (SimplePredicate common : predicate.common) {
if (predicate.common.size() > 1 && !autoBuildSetting.isPlaceHatch(common.candidates.get())) {
if (common.candidates != null && predicate.common.size() > 1 && !autoBuildSetting.isPlaceHatch(common.candidates.get())) {
continue;
}
infos = ArrayUtils.addAll(infos,
Expand Down
8 changes: 1 addition & 7 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,9 @@ license = "${mod_license}"
version = "${version}"
displayName = "${mod_name}"
displayURL = "${mod_url}"
# This will be displayed as your mod's logo in the Mods panel.
# logoFile="icon.png" #optional
# Some more fluff displayed in the Mods panel. Feel free to issue your special thanks here!
# credits="Thanks to Mojang for making this great game" #optional
# Some more fluff displayed in the Mods panel. Plug your stuff here!
authors="${mod_author}"
description = '''
Example Description
...ain is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain,... (Lorem Ipsum translated to english.)
Add some machines to GregTech-Modern
'''

[[dependencies.${mod_id}]]
Expand Down

0 comments on commit cfa0f12

Please sign in to comment.