Skip to content

Commit

Permalink
- Update mod to Forge 1.16.5-36.2.20 (fix Log4J security issue)
Browse files Browse the repository at this point in the history
- Hitbox change allowed player to fall throw #13
  • Loading branch information
cech12 committed Dec 10, 2021
1 parent 972aef4 commit 7f152d4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 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.16.5-1.0.2.0] - 2021-12-10
### Changed
- Update mod to Forge 1.16.5-36.2.20 (fix Log4J security issue)

### Fixed
- Hitbox change allowed player to fall throw #13

## [1.16.5-1.0.0.2] - 2021-08-01
### Added
- Russian and Ukrainian translation (thanks to vstannumdum aka DMHYT)
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false

mod_id=solarcooker
mod_version=1.0.0.2
mod_version=1.0.2.0
minecraft_version=1.16.5
forge_version=36.1.0
forge_version=36.2.20

# jei
jei_version=1.16.5:7.6.1.75
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ public abstract class AbstractSolarCookerBlock extends ContainerBlock {
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(AbstractBlock.Properties properties) {
super(properties);
Expand Down Expand Up @@ -126,11 +125,7 @@ public BlockRenderType getRenderShape(@Nonnull BlockState state) {
@Override
@Nonnull
public VoxelShape getShape(@Nonnull BlockState state, IBlockReader worldIn, @Nonnull BlockPos pos, @Nonnull ISelectionContext context) {
TileEntity tile = worldIn.getBlockEntity(pos);
if (tile instanceof AbstractSolarCookerTileEntity && ((AbstractSolarCookerTileEntity) tile).shouldLidBeOpen()) {
return SHAPE_OPEN;
}
return SHAPE_CLOSED;
return SHAPE;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ license="The MIT License (MIT)"
[[dependencies.solarcooker]]
modId="forge"
mandatory=true
versionRange="[36.1.0,)"
versionRange="[36.2.20,37)"
ordering="NONE"
side="BOTH"
[[dependencies.solarcooker]]
modId="minecraft"
mandatory=true
versionRange="[1.16.5,)"
versionRange="[1.16.5,1.17)"
ordering="NONE"
side="BOTH"
[[dependencies.solarcooker]]
Expand Down

0 comments on commit 7f152d4

Please sign in to comment.