Skip to content

Commit

Permalink
- Update mod to Forge 1.18-38.0.17 (fix Log4J security issue)
Browse files Browse the repository at this point in the history
- Hitbox change allowed player to fall throw #13 (thanks to JadeCrystalCat for the report)
  • Loading branch information
cech12 committed Dec 10, 2021
1 parent a46f176 commit 2417992
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Forge Recommended Versioning](https://mcforge.readthedocs.io/en/latest/conventions/versioning/).

## [1.18-1.0.2.0] - 2021-12-10
### Changed
- Update mod to Forge 1.18-38.0.17 (fix Log4J security issue)

### Fixed
- Hitbox change allowed player to fall throw #13 (thanks to JadeCrystalCat for the report)

## [1.18-1.0.1.2] - 2021-12-05
### Added
- jei compatibility readded
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false

mod_id=solarcooker
mod_version=1.0.1.2
mod_version=1.0.2.0
minecraft_version=1.18
forge_version=38.0.14
forge_version=38.0.17

# jei
jei_version=1.18:9.0.0.40

#Curseforge
curseforge_id=436874
curseforge_release=beta
curseforge_release=release
curseforge_versions=1.18
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ public abstract class AbstractSolarCookerBlock extends BaseEntityBlock {
public static final BooleanProperty SUNLIT = BlockStateProperties.LIT;
public static final BooleanProperty BURNING = BlockStateProperties.ENABLED;

protected static final VoxelShape SHAPE_OPEN = Block.box(1.0D, 0.0D, 1.0D, 15.0D, 10.0D, 15.0D);
protected static final VoxelShape SHAPE_CLOSED = Block.box(1.0D, 0.0D, 1.0D, 15.0D, 14.0D, 15.0D);
protected static final VoxelShape SHAPE = Block.box(1.0D, 0.0D, 1.0D, 15.0D, 14.0D, 15.0D);

protected AbstractSolarCookerBlock(BlockBehaviour.Properties properties) {
super(properties);
Expand Down Expand Up @@ -120,11 +119,7 @@ public RenderShape getRenderShape(@Nonnull BlockState state) {
@Override
@Nonnull
public VoxelShape getShape(@Nonnull BlockState state, BlockGetter worldIn, @Nonnull BlockPos pos, @Nonnull CollisionContext context) {
BlockEntity tile = worldIn.getBlockEntity(pos);
if (tile instanceof AbstractSolarCookerBlockEntity && ((AbstractSolarCookerBlockEntity) tile).shouldLidBeOpen()) {
return SHAPE_OPEN;
}
return SHAPE_CLOSED;
return SHAPE;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ license="The MIT License (MIT)"
[[dependencies.solarcooker]]
modId="forge"
mandatory=true
versionRange="[38.0.14,)"
versionRange="[38.0.17,)"
ordering="NONE"
side="BOTH"
[[dependencies.solarcooker]]
Expand Down

0 comments on commit 2417992

Please sign in to comment.