Skip to content

Commit 24f2e45

Browse files
authored
Merge pull request #43 from FTBTeam/dev
Dev
2 parents 77fbfab + 04d1a18 commit 24f2e45

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [2001.1.4]
8+
9+
### Fixed
10+
* Fixed team property changes not getting saved correctly
11+
712
## [2001.1.3]
813

914
### Fixed

common/src/main/java/dev/ftb/mods/ftbteams/data/AbstractTeam.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,10 @@ void sendMessage(UUID from, Component text) {
274274
markDirty();
275275
}
276276

277-
public void updatePropertiesFrom(TeamPropertyCollection properties) {
278-
TeamPropertyCollection old = properties.copy();
279-
properties.updateFrom(properties);
280-
TeamEvent.PROPERTIES_CHANGED.invoker().accept(new TeamPropertiesChangedEvent(this, old));
277+
public void updatePropertiesFrom(TeamPropertyCollection newProperties) {
278+
TeamPropertyCollection oldProperties = properties.copy();
279+
properties.updateFrom(newProperties);
280+
TeamEvent.PROPERTIES_CHANGED.invoker().accept(new TeamPropertiesChangedEvent(this, oldProperties));
281281
markDirty();
282282
}
283283

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ org.gradle.daemon=false
33
mod_id=ftbteams
44
archives_base_name=ftb-teams
55
maven_group=dev.ftb.mods
6-
mod_version=2001.1.3
6+
mod_version=2001.1.4
77
mod_author=FTB Team
88
minecraft_version=1.20.1
99
architectury_version=9.0.8

0 commit comments

Comments
 (0)