Skip to content

Commit 4087ea3

Browse files
committed
fix some things
1 parent 35de288 commit 4087ea3

File tree

8 files changed

+194
-140
lines changed

8 files changed

+194
-140
lines changed

.idea/gradle.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE

Lines changed: 167 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -1,121 +1,167 @@
1-
Creative Commons Legal Code
2-
3-
CC0 1.0 Universal
4-
5-
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
6-
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
7-
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
8-
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
9-
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
10-
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
11-
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
12-
HEREUNDER.
13-
14-
Statement of Purpose
15-
16-
The laws of most jurisdictions throughout the world automatically confer
17-
exclusive Copyright and Related Rights (defined below) upon the creator
18-
and subsequent owner(s) (each and all, an "owner") of an original work of
19-
authorship and/or a database (each, a "Work").
20-
21-
Certain owners wish to permanently relinquish those rights to a Work for
22-
the purpose of contributing to a commons of creative, cultural and
23-
scientific works ("Commons") that the public can reliably and without fear
24-
of later claims of infringement build upon, modify, incorporate in other
25-
works, reuse and redistribute as freely as possible in any form whatsoever
26-
and for any purposes, including without limitation commercial purposes.
27-
These owners may contribute to the Commons to promote the ideal of a free
28-
culture and the further production of creative, cultural and scientific
29-
works, or to gain reputation or greater distribution for their Work in
30-
part through the use and efforts of others.
31-
32-
For these and/or other purposes and motivations, and without any
33-
expectation of additional consideration or compensation, the person
34-
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
35-
is an owner of Copyright and Related Rights in the Work, voluntarily
36-
elects to apply CC0 to the Work and publicly distribute the Work under its
37-
terms, with knowledge of his or her Copyright and Related Rights in the
38-
Work and the meaning and intended legal effect of CC0 on those rights.
39-
40-
1. Copyright and Related Rights. A Work made available under CC0 may be
41-
protected by copyright and related or neighboring rights ("Copyright and
42-
Related Rights"). Copyright and Related Rights include, but are not
43-
limited to, the following:
44-
45-
i. the right to reproduce, adapt, distribute, perform, display,
46-
communicate, and translate a Work;
47-
ii. moral rights retained by the original author(s) and/or performer(s);
48-
iii. publicity and privacy rights pertaining to a person's image or
49-
likeness depicted in a Work;
50-
iv. rights protecting against unfair competition in regards to a Work,
51-
subject to the limitations in paragraph 4(a), below;
52-
v. rights protecting the extraction, dissemination, use and reuse of data
53-
in a Work;
54-
vi. database rights (such as those arising under Directive 96/9/EC of the
55-
European Parliament and of the Council of 11 March 1996 on the legal
56-
protection of databases, and under any national implementation
57-
thereof, including any amended or successor version of such
58-
directive); and
59-
vii. other similar, equivalent or corresponding rights throughout the
60-
world based on applicable law or treaty, and any national
61-
implementations thereof.
62-
63-
2. Waiver. To the greatest extent permitted by, but not in contravention
64-
of, applicable law, Affirmer hereby overtly, fully, permanently,
65-
irrevocably and unconditionally waives, abandons, and surrenders all of
66-
Affirmer's Copyright and Related Rights and associated claims and causes
67-
of action, whether now known or unknown (including existing as well as
68-
future claims and causes of action), in the Work (i) in all territories
69-
worldwide, (ii) for the maximum duration provided by applicable law or
70-
treaty (including future time extensions), (iii) in any current or future
71-
medium and for any number of copies, and (iv) for any purpose whatsoever,
72-
including without limitation commercial, advertising or promotional
73-
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
74-
member of the public at large and to the detriment of Affirmer's heirs and
75-
successors, fully intending that such Waiver shall not be subject to
76-
revocation, rescission, cancellation, termination, or any other legal or
77-
equitable action to disrupt the quiet enjoyment of the Work by the public
78-
as contemplated by Affirmer's express Statement of Purpose.
79-
80-
3. Public License Fallback. Should any part of the Waiver for any reason
81-
be judged legally invalid or ineffective under applicable law, then the
82-
Waiver shall be preserved to the maximum extent permitted taking into
83-
account Affirmer's express Statement of Purpose. In addition, to the
84-
extent the Waiver is so judged Affirmer hereby grants to each affected
85-
person a royalty-free, non transferable, non sublicensable, non exclusive,
86-
irrevocable and unconditional license to exercise Affirmer's Copyright and
87-
Related Rights in the Work (i) in all territories worldwide, (ii) for the
88-
maximum duration provided by applicable law or treaty (including future
89-
time extensions), (iii) in any current or future medium and for any number
90-
of copies, and (iv) for any purpose whatsoever, including without
91-
limitation commercial, advertising or promotional purposes (the
92-
"License"). The License shall be deemed effective as of the date CC0 was
93-
applied by Affirmer to the Work. Should any part of the License for any
94-
reason be judged legally invalid or ineffective under applicable law, such
95-
partial invalidity or ineffectiveness shall not invalidate the remainder
96-
of the License, and in such case Affirmer hereby affirms that he or she
97-
will not (i) exercise any of his or her remaining Copyright and Related
98-
Rights in the Work or (ii) assert any associated claims and causes of
99-
action with respect to the Work, in either case contrary to Affirmer's
100-
express Statement of Purpose.
101-
102-
4. Limitations and Disclaimers.
103-
104-
a. No trademark or patent rights held by Affirmer are waived, abandoned,
105-
surrendered, licensed or otherwise affected by this document.
106-
b. Affirmer offers the Work as-is and makes no representations or
107-
warranties of any kind concerning the Work, express, implied,
108-
statutory or otherwise, including without limitation warranties of
109-
title, merchantability, fitness for a particular purpose, non
110-
infringement, or the absence of latent or other defects, accuracy, or
111-
the present or absence of errors, whether or not discoverable, all to
112-
the greatest extent permissible under applicable law.
113-
c. Affirmer disclaims responsibility for clearing rights of other persons
114-
that may apply to the Work or any use thereof, including without
115-
limitation any person's Copyright and Related Rights in the Work.
116-
Further, Affirmer disclaims responsibility for obtaining any necessary
117-
consents, permissions or other rights required for any use of the
118-
Work.
119-
d. Affirmer understands and acknowledges that Creative Commons is not a
120-
party to this document and has no duty or obligation with respect to
121-
this CC0 or use of the Work.
1+
Copyright (C) 2020 moehreag + Contributors
2+
3+
GNU LESSER GENERAL PUBLIC LICENSE
4+
Version 3, 29 June 2007
5+
6+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
7+
Everyone is permitted to copy and distribute verbatim copies
8+
of this license document, but changing it is not allowed.
9+
10+
11+
This version of the GNU Lesser General Public License incorporates
12+
the terms and conditions of version 3 of the GNU General Public
13+
License, supplemented by the additional permissions listed below.
14+
15+
0. Additional Definitions.
16+
17+
As used herein, "this License" refers to version 3 of the GNU Lesser
18+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
19+
General Public License.
20+
21+
"The Library" refers to a covered work governed by this License,
22+
other than an Application or a Combined Work as defined below.
23+
24+
An "Application" is any work that makes use of an interface provided
25+
by the Library, but which is not otherwise based on the Library.
26+
Defining a subclass of a class defined by the Library is deemed a mode
27+
of using an interface provided by the Library.
28+
29+
A "Combined Work" is a work produced by combining or linking an
30+
Application with the Library. The particular version of the Library
31+
with which the Combined Work was made is also called the "Linked
32+
Version".
33+
34+
The "Minimal Corresponding Source" for a Combined Work means the
35+
Corresponding Source for the Combined Work, excluding any source code
36+
for portions of the Combined Work that, considered in isolation, are
37+
based on the Application, and not on the Linked Version.
38+
39+
The "Corresponding Application Code" for a Combined Work means the
40+
object code and/or source code for the Application, including any data
41+
and utility programs needed for reproducing the Combined Work from the
42+
Application, but excluding the System Libraries of the Combined Work.
43+
44+
1. Exception to Section 3 of the GNU GPL.
45+
46+
You may convey a covered work under sections 3 and 4 of this License
47+
without being bound by section 3 of the GNU GPL.
48+
49+
2. Conveying Modified Versions.
50+
51+
If you modify a copy of the Library, and, in your modifications, a
52+
facility refers to a function or data to be supplied by an Application
53+
that uses the facility (other than as an argument passed when the
54+
facility is invoked), then you may convey a copy of the modified
55+
version:
56+
57+
a) under this License, provided that you make a good faith effort to
58+
ensure that, in the event an Application does not supply the
59+
function or data, the facility still operates, and performs
60+
whatever part of its purpose remains meaningful, or
61+
62+
b) under the GNU GPL, with none of the additional permissions of
63+
this License applicable to that copy.
64+
65+
3. Object Code Incorporating Material from Library Header Files.
66+
67+
The object code form of an Application may incorporate material from
68+
a header file that is part of the Library. You may convey such object
69+
code under terms of your choice, provided that, if the incorporated
70+
material is not limited to numerical parameters, data structure
71+
layouts and accessors, or small macros, inline functions and templates
72+
(ten or fewer lines in length), you do both of the following:
73+
74+
a) Give prominent notice with each copy of the object code that the
75+
Library is used in it and that the Library and its use are
76+
covered by this License.
77+
78+
b) Accompany the object code with a copy of the GNU GPL and this license
79+
document.
80+
81+
4. Combined Works.
82+
83+
You may convey a Combined Work under terms of your choice that,
84+
taken together, effectively do not restrict modification of the
85+
portions of the Library contained in the Combined Work and reverse
86+
engineering for debugging such modifications, if you also do each of
87+
the following:
88+
89+
a) Give prominent notice with each copy of the Combined Work that
90+
the Library is used in it and that the Library and its use are
91+
covered by this License.
92+
93+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
94+
document.
95+
96+
c) For a Combined Work that displays copyright notices during
97+
execution, include the copyright notice for the Library among
98+
these notices, as well as a reference directing the user to the
99+
copies of the GNU GPL and this license document.
100+
101+
d) Do one of the following:
102+
103+
0) Convey the Minimal Corresponding Source under the terms of this
104+
License, and the Corresponding Application Code in a form
105+
suitable for, and under terms that permit, the user to
106+
recombine or relink the Application with a modified version of
107+
the Linked Version to produce a modified Combined Work, in the
108+
manner specified by section 6 of the GNU GPL for conveying
109+
Corresponding Source.
110+
111+
1) Use a suitable shared library mechanism for linking with the
112+
Library. A suitable mechanism is one that (a) uses at run time
113+
a copy of the Library already present on the user's computer
114+
system, and (b) will operate properly with a modified version
115+
of the Library that is interface-compatible with the Linked
116+
Version.
117+
118+
e) Provide Installation Information, but only if you would otherwise
119+
be required to provide such information under section 6 of the
120+
GNU GPL, and only to the extent that such information is
121+
necessary to install and execute a modified version of the
122+
Combined Work produced by recombining or relinking the
123+
Application with a modified version of the Linked Version. (If
124+
you use option 4d0, the Installation Information must accompany
125+
the Minimal Corresponding Source and Corresponding Application
126+
Code. If you use option 4d1, you must provide the Installation
127+
Information in the manner specified by section 6 of the GNU GPL
128+
for conveying Corresponding Source.)
129+
130+
5. Combined Libraries.
131+
132+
You may place library facilities that are a work based on the
133+
Library side by side in a single library together with other library
134+
facilities that are not Applications and are not covered by this
135+
License, and convey such a combined library under terms of your
136+
choice, if you do both of the following:
137+
138+
a) Accompany the combined library with a copy of the same work based
139+
on the Library, uncombined with any other library facilities,
140+
conveyed under the terms of this License.
141+
142+
b) Give prominent notice with the combined library that part of it
143+
is a work based on the Library, and explaining where to find the
144+
accompanying uncombined form of the same work.
145+
146+
6. Revised Versions of the GNU Lesser General Public License.
147+
148+
The Free Software Foundation may publish revised and/or new versions
149+
of the GNU Lesser General Public License from time to time. Such new
150+
versions will be similar in spirit to the present version, but may
151+
differ in detail to address new problems or concerns.
152+
153+
Each version is given a distinguishing version number. If the
154+
Library as you received it specifies that a certain numbered version
155+
of the GNU Lesser General Public License "or any later version"
156+
applies to it, you have the option of following the terms and
157+
conditions either of that published version or of any later version
158+
published by the Free Software Foundation. If the Library as you
159+
received it does not specify a version number of the GNU Lesser
160+
General Public License, you may choose any version of the GNU Lesser
161+
General Public License ever published by the Free Software Foundation.
162+
163+
If the Library as you received it specifies that a proxy can decide
164+
whether future versions of the GNU Lesser General Public License shall
165+
apply, that proxy's public statement of acceptance of any version is
166+
permanent authorization for you to choose that version for the
167+
Library.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ org.gradle.jvmargs=-Xmx1G
77
loader_version = 0.14.8
88

99
# Mod Properties
10-
mod_version = 2.0.2+1.8.9
10+
mod_version = 2.1.0+1.8.9
1111
maven_group = io.github.moehreag
1212
archives_base_name = AxolotlClient
1313

src/main/java/io/github/axolotlclient/mixin/ReloadableResourceManagerImplMixin.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ public void loadSkies(List<ResourcePack> resourcePacks, CallbackInfo ci){
2626
if(AxolotlClient.initalized)SkyResourceManager.reload(resourcePacks);
2727
else{SkyResourceManager.packs=resourcePacks;}
2828

29+
AxolotlClient.packs=resourcePacks;
30+
2931
PackDisplayHud hud = (PackDisplayHud) HudManager.getINSTANCE().get(PackDisplayHud.ID);
3032
if(hud.isEnabled()){
3133
hud.widgets.clear();
34+
hud.init();
3235
}
33-
34-
AxolotlClient.packs=resourcePacks;
3536
}
3637

3738
@Inject(method = "getResource", at = @At("HEAD"), cancellable = true)

src/main/java/io/github/axolotlclient/modules/hud/gui/hud/PackDisplayHud.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void init() {
4343
});
4444
width=w.get();
4545

46-
height=widgets.size()*18;
46+
height=(widgets.size()-1)*18+18;
4747
}
4848

4949
@Override
@@ -71,6 +71,7 @@ public void render() {
7171
@Override
7272
public void renderPlaceholder() {
7373
renderPlaceholderBackground();
74+
hovered=false;
7475
}
7576

7677
@Override
@@ -100,7 +101,7 @@ public void render(int x, int y) {
100101
GlStateManager.color3f(textColor.get().getRed(), textColor.get().getGreen(), textColor.get().getBlue());
101102
GlStateManager.bindTexture(texture);
102103
drawTexture(x, y, 0, 0, 16, 16, 16, 16);
103-
drawString(MinecraftClient.getInstance().textRenderer, name, x + 18, y + 6, textColor.get().getAsInt(), shadow.get());
104+
drawString(MinecraftClient.getInstance().textRenderer, name, x + 18, y + 6, chroma.get()? textColor.getChroma().getAsInt() : textColor.get().getAsInt(), shadow.get());
104105
}
105106

106107
}
@@ -115,5 +116,6 @@ public void addConfigOptions(List<Option> options) {
115116
options.add(outlineColor);
116117
options.add(shadow);
117118
options.add(textColor);
119+
options.add(chroma);
118120
}
119121
}

src/main/java/io/github/axolotlclient/modules/motionblur/MotionBlur.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class MotionBlur extends AbstractModule {
1919

2020
public static Identifier ID = new Identifier("motion_blur");
2121

22-
private Identifier shaderLocation = new Identifier("minecraft:shaders/post/motion_blur.json");
22+
private final Identifier shaderLocation = new Identifier("minecraft:shaders/post/motion_blur.json");
2323

2424
public ShaderEffect shader;
2525
private final MinecraftClient client = MinecraftClient.getInstance();

src/main/java/io/github/axolotlclient/modules/sky/FSBSkyboxInstance.java

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,22 @@ public class FSBSkyboxInstance extends SkyboxInstance{
1818

1919
public FSBSkyboxInstance(JsonObject json){
2020
super(json);
21-
JsonObject props = json.get("properties").getAsJsonObject();
22-
JsonObject textures = json.get("textures").getAsJsonObject();
23-
this.textures[0] = new Identifier(textures.get("bottom").getAsString());
24-
this.textures[1] = new Identifier(textures.get("north").getAsString());
25-
this.textures[2] = new Identifier(textures.get("south").getAsString());
26-
this.textures[3] = new Identifier(textures.get("top").getAsString());
27-
this.textures[4] = new Identifier(textures.get("east").getAsString());
28-
this.textures[5] = new Identifier(textures.get("west").getAsString());
29-
this.fade[0] = props.get("fade").getAsJsonObject().get("startFadeIn").getAsInt();
30-
this.fade[1] = props.get("fade").getAsJsonObject().get("endFadeIn").getAsInt();
31-
this.fade[2] = props.get("fade").getAsJsonObject().get("startFadeOut").getAsInt();
32-
this.fade[3] = props.get("fade").getAsJsonObject().get("endFadeOut").getAsInt();
21+
JsonObject props = json.get("properties").getAsJsonObject();
22+
JsonObject textures = json.get("textures").getAsJsonObject();
23+
this.textures[0] = new Identifier(textures.get("bottom").getAsString());
24+
this.textures[1] = new Identifier(textures.get("north").getAsString());
25+
this.textures[2] = new Identifier(textures.get("south").getAsString());
26+
this.textures[3] = new Identifier(textures.get("top").getAsString());
27+
this.textures[4] = new Identifier(textures.get("east").getAsString());
28+
this.textures[5] = new Identifier(textures.get("west").getAsString());
29+
this.fade[0] = props.get("fade").getAsJsonObject().get("startFadeIn").getAsInt();
30+
this.fade[1] = props.get("fade").getAsJsonObject().get("endFadeIn").getAsInt();
31+
this.fade[2] = props.get("fade").getAsJsonObject().get("startFadeOut").getAsInt();
32+
this.fade[3] = props.get("fade").getAsJsonObject().get("endFadeOut").getAsInt();
3333

34+
try {
3435
this.blendMode = parseBlend(props.get("blend").getAsJsonObject().get("type").getAsString());
36+
} catch (Exception ignored){}
3537
}
3638

3739
public void renderSkybox(){

0 commit comments

Comments
 (0)