Skip to content

Commit

Permalink
fix forge server mod making the mod required on the client
Browse files Browse the repository at this point in the history
  • Loading branch information
fayer3 committed Oct 27, 2022
1 parent f0efead commit 939636f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion common/src/main/resources/vivecraft.nonvr.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"world.entity.monster.EndermanFreezeWhenLookedAtMixin",

"world.item.CrossbowItemMixin",
"world.item.ItemsMixin",
"world.item.crafting.ShapedRecipeMixin"
],
"client": [
Expand Down
8 changes: 7 additions & 1 deletion forge/src/main/java/org/vivecraft/forge/Vivecraft.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
package org.vivecraft.forge;

import net.minecraftforge.fml.IExtensionPoint;
import net.minecraftforge.fml.ModLoadingContext;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.network.NetworkConstants;

@Mod(Vivecraft.MODID)
public class Vivecraft {
public static final String MODID = "vivecraft";

public Vivecraft() {

ModLoadingContext.get().registerExtensionPoint(IExtensionPoint.DisplayTest.class, ()-> new IExtensionPoint.DisplayTest(
()->NetworkConstants.IGNORESERVERONLY, // only needed on server, client is optional
(s,b)->true // any version is good
));
}
}

0 comments on commit 939636f

Please sign in to comment.