Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
CreatureChat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Public
CreatureChat
Commits
2a36b9ad
Commit
2a36b9ad
authored
a year ago
by
Jonathan Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing some minor warnings
parent
6d0871e2
Pipeline
#11939
passed with stage
in 20 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
ClientInit.java
src/client/java/com/owlmaddie/ClientInit.java
+2
-5
No files found.
src/client/java/com/owlmaddie/ClientInit.java
View file @
2a36b9ad
...
...
@@ -21,8 +21,6 @@ import net.minecraft.util.math.Vec3d;
import
net.minecraft.world.World
;
import
org.joml.Matrix4f
;
import
org.joml.Quaternionf
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
java.util.List
;
import
java.util.stream.Collectors
;
...
...
@@ -32,8 +30,7 @@ import java.util.stream.Collectors;
* render pipeline to draw chat bubbles, text, and entity icons.
*/
public
class
ClientInit
implements
ClientModInitializer
{
public
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
"mobgpt"
);
protected
static
TextureLoader
textures
=
new
TextureLoader
();;
protected
static
TextureLoader
textures
=
new
TextureLoader
();
public
static
int
DISPLAY_NUM_LINES
=
3
;
public
static
int
DISPLAY_PADDING
=
2
;
...
...
@@ -320,7 +317,7 @@ public class ClientInit implements ClientModInitializer {
matrices
.
scale
(-
0.02
F
,
-
0.02
F
,
0.02
F
);
// Translate above the entity
matrices
.
translate
(
0
F
,
-
scaledTextHeight
+
-
textHeaderHeight
+
-
textFooterHeight
,
0
F
);
matrices
.
translate
(
0
F
,
-
scaledTextHeight
-
textHeaderHeight
-
textFooterHeight
,
0
F
);
// Draw Entity (Custom Name)
drawEntityName
(
entity
,
matrix
,
immediate
,
fullBright
,
24
F
+
DISPLAY_PADDING
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment