Skip to content

Commit

Permalink
[FF]: Fix Soul campfire doestn't work right #28
Browse files Browse the repository at this point in the history
  • Loading branch information
Crystal-Spider committed Oct 5, 2023
1 parent 8917db9 commit 24b4547
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion fabric/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ org.gradle.daemon = false

# Mod Properties
mod_title = Soul fire'd
mod_version = 3.2.0.0
mod_version = 3.2.0.1-final
author = Crystal Spider
group = crystalspider
modid = soulfired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -676,10 +676,7 @@ public static boolean damageInFire(Entity entity, String fireId, String modId) {
public static boolean damageInFire(Entity entity, Identifier fireType) {
if (isRegisteredType(fireType)) {
((FireTypeChanger) entity).setFireType(fireType);
if (entity.age % 20 == 0) {
return harmOrHeal(entity, getInFireDamageSource(fireType), getDamage(fireType), getInvertHealAndHarm(fireType));
}
return false;
return harmOrHeal(entity, getInFireDamageSource(fireType), getDamage(fireType), getInvertHealAndHarm(fireType));
}
((FireTypeChanger) entity).setFireType(DEFAULT_FIRE_TYPE);
return harmOrHeal(entity, DEFAULT_FIRE.getInFire(), DEFAULT_FIRE.getDamage(), DEFAULT_FIRE.getInvertHealAndHarm());
Expand Down
2 changes: 1 addition & 1 deletion forge/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ org.gradle.daemon = false

# Mod Properties
mod_title = Soul fire'd
mod_version = 3.2.0.0
mod_version = 3.2.0.1-final
author = Crystal Spider
group = crystalspider
modid = soulfired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -667,10 +667,7 @@ public static boolean damageInFire(Entity entity, String fireId, String modId) {
public static boolean damageInFire(Entity entity, ResourceLocation fireType) {
if (isRegisteredType(fireType)) {
((FireTypeChanger) entity).setFireType(fireType);
if (entity.tickCount % 20 == 0) {
return harmOrHeal(entity, getInFireDamageSource(fireType), getDamage(fireType), getInvertHealAndHarm(fireType));
}
return false;
return harmOrHeal(entity, getInFireDamageSource(fireType), getDamage(fireType), getInvertHealAndHarm(fireType));
}
((FireTypeChanger) entity).setFireType(DEFAULT_FIRE_TYPE);
return harmOrHeal(entity, DEFAULT_FIRE.getInFire(), DEFAULT_FIRE.getDamage(), DEFAULT_FIRE.getInvertHealAndHarm());
Expand Down
1 change: 1 addition & 0 deletions publish.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ cd ../forge
powershell -Command "./gradlew githubRelease";
powershell -Command "./gradlew curseforge";
powershell -Command "./gradlew modrinth";
pause

0 comments on commit 24b4547

Please sign in to comment.