Skip to content

Commit

Permalink
Server & client mixin separation, swors item fix
Browse files Browse the repository at this point in the history
  • Loading branch information
paulevsGitch committed Mar 21, 2020
1 parent 686a311 commit 7764021
Show file tree
Hide file tree
Showing 23 changed files with 51 additions and 43 deletions.
30 changes: 14 additions & 16 deletions BetterNether_snapshots_server.launch
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/BetterNether_snapshots"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.buildship.core.classpathprovider"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="net.fabricmc.devlaunchinjector.Main"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value=""/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="BetterNether_snapshots"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dfabric.dli.config=D:\MC_BetterNether_1.15.1\BetterNether_snapshots\.gradle\loom-cache\launch.cfg -Dfabric.dli.env=server -Dfabric.dli.main=net.fabricmc.loader.launch.knot.KnotServer"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${project_loc:BetterNether_snapshots}/run"/>
</launchConfiguration>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/BetterNether_snapshots"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="net.fabricmc.devlaunchinjector.Main"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="BetterNether_snapshots"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dfabric.dli.config=D:\MC_BetterNether_1.15.1\BetterNether_snapshots\.gradle\loom-cache\launch.cfg -Dfabric.dli.env=server -Dfabric.dli.main=net.fabricmc.loader.launch.knot.KnotServer"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${project_loc:BetterNether_snapshots}/run"/>
</launchConfiguration>
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.7.8+build.188

# Mod Properties
mod_version = 2.5.0
mod_version = 2.5.1
maven_group = paulevs.betternether
archives_base_name = better-nether

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package paulevs.betternether.mixin;
package paulevs.betternether.mixin.client;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package paulevs.betternether.mixin;
package paulevs.betternether.mixin.client;

import java.util.Random;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package paulevs.betternether.mixin;
package paulevs.betternether.mixin.client;

import java.util.Iterator;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package paulevs.betternether.mixin;
package paulevs.betternether.mixin.client;

import java.util.Iterator;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package paulevs.betternether.mixin;
package paulevs.betternether.mixin.common;

import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package paulevs.betternether.mixin;
package paulevs.betternether.mixin.common;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package paulevs.betternether.mixin;
package paulevs.betternether.mixin.common;

import java.util.HashSet;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package paulevs.betternether.mixin;
package paulevs.betternether.mixin.common;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package paulevs.betternether.mixin;
package paulevs.betternether.mixin.common;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package paulevs.betternether.mixin;
package paulevs.betternether.mixin.common;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package paulevs.betternether.mixin;
package paulevs.betternether.mixin.common;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package paulevs.betternether.mixin;
package paulevs.betternether.mixin.common;

import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package paulevs.betternether.mixin;
package paulevs.betternether.mixin.common;

import java.util.Random;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package paulevs.betternether.mixin;
package paulevs.betternether.mixin.common;

import java.util.Random;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package paulevs.betternether.mixin;
package paulevs.betternether.mixin.common;

import java.util.Optional;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package paulevs.betternether.mixin;
package paulevs.betternether.mixin.common;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"parent": "item/generated",
"parent": "item/handheld",
"textures": {
"layer0": "betternether:item/cincinnasite_sword"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"parent": "item/generated",
"parent": "item/handheld",
"textures": {
"layer0": "betternether:item/cincinnasite_sword_diamond"
}
Expand Down
14 changes: 14 additions & 0 deletions src/main/resources/betternether.mixins.client.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"required": true,
"package": "paulevs.betternether.mixin.client",
"compatibilityLevel": "JAVA_8",
"client": [
"BackgroundRenderMixin",
"LavaFluidMixin",
"StandArmorMixin",
"PlayerArmorMixin"
],
"injectors": {
"defaultRequire": 1
}
}
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
{
"required": true,
"package": "paulevs.betternether.mixin",
"package": "paulevs.betternether.mixin.common",
"compatibilityLevel": "JAVA_8",
"mixins": [
"ChunkPopulateMixin",
"ChunkPopulateMixin",
"MushroomMixin",
"MapMixin",
"MapStateMixin",
"PlayerArmorMixin",
"StandArmorMixin",
"LocateMixin",
"GrassGrowMixin",
"StructureMixin",
"BackgroundRenderMixin",
"LightStorageMixin",
"NetherWartMixin",
"BiomeArrayMixin",
"BiomeMixin",
"LavaFluidMixin",
"PlayerEntityMixin"
],
"client": [],
"injectors": {
"defaultRequire": 1
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
]
},
"mixins": [
"betternether.mixins.json"
"betternether.mixins.common.json",
"betternether.mixins.client.json"
],

"depends": {
Expand Down

0 comments on commit 7764021

Please sign in to comment.