Skip to content

Commit

Permalink
fixed: Naturally generated campfires could crash the game #31
Browse files Browse the repository at this point in the history
  • Loading branch information
cech12 committed Jan 30, 2024
1 parent 6280471 commit e64b71c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cicd-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
loaders: |
neoforge
forge
title-prefix: 'forge-'
version-prefix: 'forge-'
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -66,6 +67,7 @@ jobs:
loaders: |
neoforge
forge
title-prefix: 'forge-'
version-prefix: 'forge-'
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ 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.20.1-1.9.0.2] - 2024-01-30
### Fixed
- Naturally generated campfires could crash the game #31 (thanks to hanweiyyds for the report)

## [1.20.1-1.9.0.1] - 2023-08-22
### Fixed
- wooden shovel was used as burnable instead of extinguishing the campfire (thanks to brass_mccrafty for the report) #27
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mixin_version=0.8.5

## Mod Properties
mod_id=unlitcampfire
mod_version=1.9.0.1
mod_version=1.9.0.2
mod_group_id=cech12.unlitcampfire
mod_name=Unlit Campfire
mod_authors=Cech12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ protected void dowseProxy(CallbackInfo info) {
//is called by multiple sources such as shovel, water potion, water bucket extinguishing
this.litTime = 0;
this.rainTime = 0;
this.markUpdated();
if (this.level != null) {
this.markUpdated();
}
}

}

0 comments on commit e64b71c

Please sign in to comment.