diff options
author | DoKM <mcazzyman@gmail.com> | 2021-08-01 17:43:07 +0200 |
---|---|---|
committer | DoKM <mcazzyman@gmail.com> | 2021-08-01 17:43:07 +0200 |
commit | 7cac988d908f6f97db33362190ea49e4e2a7f14d (patch) | |
tree | 3e9c93e1cc551bf01aef21eaf83234e7cb6b72be | |
parent | f9a9854ce9f60e8bedf02c7eb9810c3b0f2798ec (diff) | |
download | NotEnoughUpdates-7cac988d908f6f97db33362190ea49e4e2a7f14d.tar.gz NotEnoughUpdates-7cac988d908f6f97db33362190ea49e4e2a7f14d.tar.bz2 NotEnoughUpdates-7cac988d908f6f97db33362190ea49e4e2a7f14d.zip |
Add ability to disable neu's custom skulls
idk why you would want this but its here
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CustomSkulls.java | 3 | ||||
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Misc.java | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CustomSkulls.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CustomSkulls.java index 8e2874d3..ed4c8919 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CustomSkulls.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CustomSkulls.java @@ -220,6 +220,9 @@ public class CustomSkulls implements IResourceManagerReloadListener { public boolean renderSkull(float xOffset, float yOffset, float zOffset, EnumFacing placedDirection, float rotationDeg, int skullType, GameProfile skullOwner, int damage) { + if(NotEnoughUpdates.INSTANCE.config.misc.disableSkullRetexturing) { + return false; + } if(placedDirection != EnumFacing.UP || skullType != 3) { return false; } diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Misc.java b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Misc.java index 37c75d28..6a083cae 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Misc.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Misc.java @@ -67,4 +67,15 @@ public class Misc { minStep = 10
)
public int chromaSpeed = 100;
+
+ @Expose
+ @ConfigOption(
+ name = "Disable Skull retexturing",
+ desc = "Disables the skull retexturing."
+ )
+ @ConfigEditorBoolean
+ public boolean disableSkullRetexturing = false;
+
+
+
}
\ No newline at end of file |