Skip to content

Commit

Permalink
Fix crashing on Fabric
Browse files Browse the repository at this point in the history
  • Loading branch information
Adubbz committed Jan 8, 2024
1 parent 3eeaf3f commit e50ba87
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public Provider(SpriteSet p_105899_) {
this.sprites = p_105899_;
}

@Override
public Particle createParticle(SimpleParticleType p_105910_, ClientLevel p_105911_, double p_105912_, double p_105913_, double p_105914_, double p_105915_, double p_105916_, double p_105917_)
{
ThermoregulatorParticle particle = new ThermoregulatorParticle(p_105911_, p_105912_, p_105913_, p_105914_, p_105915_, p_105916_, p_105917_);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,20 @@
******************************************************************************/
package toughasnails.fabric.core;

import glitchcore.fabric.GlitchCoreFabric;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientLifecycleEvents;
import glitchcore.fabric.GlitchCoreInitializer;
import toughasnails.core.ToughAsNails;

public class ToughAsNailsFabric implements ModInitializer, ClientModInitializer
public class ToughAsNailsFabric implements GlitchCoreInitializer
{
@Override
public void onInitialize()
{
ToughAsNails.init();
GlitchCoreFabric.prepareEvents();
}

@Override
public void onInitializeClient()
{
ClientLifecycleEvents.CLIENT_STARTED.register(client -> {
ToughAsNails.setupClient();
});
ToughAsNails.setupClient();
}
}
5 changes: 1 addition & 4 deletions fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@
"icon": "${mod_id}_logo.png",
"environment": "*",
"entrypoints": {
"main": [
"toughasnails.fabric.core.ToughAsNailsFabric"
],
"client": [
"glitchcore": [
"toughasnails.fabric.core.ToughAsNailsFabric"
]
},
Expand Down
2 changes: 1 addition & 1 deletion forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ logoFile="${mod_id}_logo.png"
modId="glitchcore"
mandatory=true
versionRange="[${glitchcore_version},)"
ordering="NONE"
ordering="AFTER"
side="BOTH"
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ org.gradle.daemon=false

# Dependencies
nightconfig_version=3.6.7
glitchcore_version=1.0.0.41
glitchcore_version=1.0.0.43
serene_seasons_version=9.3.0.0
2 changes: 1 addition & 1 deletion neoforge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ logoFile="${mod_id}_logo.png"
modId="glitchcore"
required=true
versionRange="[${glitchcore_version},)"
ordering="NONE"
ordering="AFTER"
side="BOTH"

0 comments on commit e50ba87

Please sign in to comment.