Skip to content

Commit

Permalink
reduce required fapi and remove mob conversion event invocation (for …
Browse files Browse the repository at this point in the history
…now)
  • Loading branch information
TheDeathlyCow committed Feb 29, 2024
1 parent 5f39c7f commit afc9002
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ archives_base_name = frostiful
# Dependencies

# actually fabric api
fabric_version=0.92.0+1.20.1
fabric_version=0.91.0+1.20.1

mod_menu_version=7.1.0
cloth_config_version=11.0.99
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import com.github.thedeathlycow.frostiful.registry.FItems;
import com.github.thedeathlycow.frostiful.sound.FSoundEvents;
import com.github.thedeathlycow.thermoo.api.ThermooAttributes;
import net.fabricmc.fabric.api.entity.event.v1.ServerLivingEntityEvents;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.LightningEntity;
import net.minecraft.entity.SpawnReason;
Expand Down Expand Up @@ -68,11 +67,12 @@ public void onStruckByLightning(ServerWorld world, LightningEntity lightning) {

frostologer.setPersistent();
world.spawnEntityAndPassengers(frostologer);
ServerLivingEntityEvents.MOB_CONVERSION.invoker().onConversion(
this,
frostologer,
false
);
// TODO: uncomment this line for 1.0.6
// ServerLivingEntityEvents.MOB_CONVERSION.invoker().onConversion(
// this,
// frostologer,
// false
// );
this.discard();
} else {
super.onStruckByLightning(world, lightning);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
],
"depends": {
"fabricloader": ">=0.15.7",
"fabric-api": ">=0.92.0+1.20.1",
"fabric-api": ">=0.91.0",
"minecraft": "~1.20.1",
"thermoo": ">=2.1.2",
"mm": ">=2.3",
Expand Down

0 comments on commit afc9002

Please sign in to comment.