mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-24 16:24:26 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c82714f9a | ||
|
|
bdd255fefd | ||
|
|
0de720f1e6 | ||
|
|
6a36a1aa03 | ||
|
|
cca408ac55 | ||
|
|
1400967c10 | ||
|
|
54d442ed90 | ||
|
|
5eef112fbe |
No files matched your search
@@ -0,0 +1,25 @@
|
||||
name: Java CI with Gradle
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew SetupCIWorkspace build
|
||||
- name: Build with Gradle (nomixin)
|
||||
run: ./gradlew build -Pnomixin
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Package
|
||||
path: build/libs
|
||||
+25
-8
@@ -24,7 +24,7 @@ configurations {
|
||||
|
||||
apply plugin: 'forge'
|
||||
|
||||
version = "1.6.2"
|
||||
version = "1.6.4"
|
||||
group= "com.kamkeel.customnpc-plus" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
archivesBaseName = "CustomNPC-Plus"
|
||||
|
||||
@@ -87,9 +87,15 @@ jar {
|
||||
//Add
|
||||
//--tweakClass org.spongepowered.asm.launch.MixinTweaker --mixin customnpcs.mixins.json
|
||||
//to your client and server program arguments if working in a dev environment.
|
||||
def embedMixin = !project.hasProperty("nomixin");
|
||||
def yourMixinConfig = 'customnpcs.mixins.json'
|
||||
def refMapForYourConfig = 'customnpcs.refmap.json'
|
||||
def relativePathToMixinAP = 'tools/mixin-0.8-SNAPSHOT.jar'
|
||||
|
||||
if(!embedMixin){
|
||||
version += "+nomixin"
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
name = "sponge"
|
||||
@@ -98,13 +104,24 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
embed('org.spongepowered:mixin:0.7.11-SNAPSHOT') {
|
||||
// Mixin includes a lot of dependencies that are too up-to-date
|
||||
exclude module: 'launchwrapper'
|
||||
exclude module: 'guava'
|
||||
exclude module: 'gson'
|
||||
exclude module: 'commons-io'
|
||||
exclude module: 'log4j-core'
|
||||
if(embedMixin){
|
||||
embed('org.spongepowered:mixin:0.7.11-SNAPSHOT') {
|
||||
// Mixin includes a lot of dependencies that are too up-to-date
|
||||
exclude module: 'launchwrapper'
|
||||
exclude module: 'guava'
|
||||
exclude module: 'gson'
|
||||
exclude module: 'commons-io'
|
||||
exclude module: 'log4j-core'
|
||||
}
|
||||
} else {
|
||||
implementation('org.spongepowered:mixin:0.7.11-SNAPSHOT') {
|
||||
// Mixin includes a lot of dependencies that are too up-to-date
|
||||
exclude module: 'launchwrapper'
|
||||
exclude module: 'guava'
|
||||
exclude module: 'gson'
|
||||
exclude module: 'commons-io'
|
||||
exclude module: 'log4j-core'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ import java.util.ArrayList;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
@Mod(modid = "customnpcs", name = "CustomNpcs", version = "1.6.2")
|
||||
@Mod(modid = "customnpcs", name = "CustomNpcs", version = "1.6.4")
|
||||
public class CustomNpcs {
|
||||
|
||||
@ConfigProp(info = "Disable Chat Bubbles")
|
||||
@@ -159,6 +159,9 @@ public class CustomNpcs {
|
||||
@ConfigProp(info="Font size for custom fonts (doesn't work with minecrafts font)")
|
||||
public static int FontSize = 18;
|
||||
|
||||
@ConfigProp(info = "Enables Overlay Mixins for Conflicts relating to Optifine or other Skin Renderers. If crashes occur, please disable.")
|
||||
public static boolean EntityRendererMixin = true;
|
||||
|
||||
public static FMLEventChannel Channel;
|
||||
public static FMLEventChannel ChannelPlayer;
|
||||
|
||||
|
||||
@@ -185,6 +185,7 @@ public class GuiNpcDisplay extends GuiNPCInterface2 implements ITextfieldListene
|
||||
}
|
||||
else if(button.id == 11){
|
||||
npc.display.skinOverlayData.overlayList.get(0).setGlow(button.getValue() == 0);
|
||||
npc.display.skinOverlayData.overlayList.get(0).setBlend(button.getValue() == 0);
|
||||
initGui();
|
||||
}
|
||||
else if(button.id == 14){
|
||||
|
||||
@@ -259,7 +259,7 @@ public class RenderNPCHumanMale extends RenderNPCInterface
|
||||
GL11.glRotatef(-100.0F, 1.0F, 0.0F, 0.0F);
|
||||
GL11.glRotatef(45.0F, 0.0F, 1.0F, 0.0F);
|
||||
}
|
||||
else if (itemstack2.getItem().isFull3D() && (customRenderer == null || pluginMod))
|
||||
else if (itemstack2.getItem().isFull3D() && !is3D)
|
||||
{
|
||||
var6 = 0.625F;
|
||||
|
||||
@@ -367,7 +367,7 @@ public class RenderNPCHumanMale extends RenderNPCInterface
|
||||
GL11.glRotatef(-100.0F, 1.0F, 0.0F, 0.0F);
|
||||
GL11.glRotatef(45.0F, 0.0F, 1.0F, 0.0F);
|
||||
}
|
||||
else if (itemstack2.getItem().isFull3D())
|
||||
else if (itemstack2.getItem().isFull3D() && !is3D)
|
||||
{
|
||||
var6 = 0.625F;
|
||||
|
||||
|
||||
@@ -77,8 +77,8 @@ public class ItemSoulstoneFilled extends Item {
|
||||
EntityNPCInterface npc = (EntityNPCInterface) entity;
|
||||
npc.ai.startPos = new int[]{x, y, z};
|
||||
npc.setHealth(npc.getMaxHealth());
|
||||
npc.setPosition((float)x + 0.5F, npc.getStartYPos(), (float)z + 0.5F);
|
||||
npc.advanced.soulStonePlayerName = player.getDisplayName();
|
||||
npc.setPosition((float)x + 0.5F, npc.getStartYPos() - 0.5, (float)z + 0.5F);
|
||||
npc.advanced.soulStonePlayerName = player.getDisplayName();
|
||||
npc.advanced.soulStoneInit = true;
|
||||
if(npc.advanced.role == EnumRoleType.Companion && player != null){
|
||||
PlayerData data = PlayerDataController.instance.getPlayerData(player);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package noppes.npcs.mixin;
|
||||
|
||||
import noppes.npcs.CustomNpcs;
|
||||
import org.spongepowered.asm.lib.tree.ClassNode;
|
||||
import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin;
|
||||
import org.spongepowered.asm.mixin.extensibility.IMixinInfo;
|
||||
@@ -32,9 +33,9 @@ public class CustomNPCsMixinPlugin implements IMixinConfigPlugin {
|
||||
@Override
|
||||
public List<String> getMixins() {
|
||||
List<String> mixins = new ArrayList<>();
|
||||
|
||||
mixins.add("MixinEntityRenderer");
|
||||
|
||||
if (CustomNpcs.EntityRendererMixin){
|
||||
mixins.add("MixinEntityRenderer");
|
||||
}
|
||||
return mixins;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user