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
49b03f7c
Commit
49b03f7c
authored
Apr 25, 2024
by
Jonathan Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made a few noisy logs quieter (debug instead of info)
parent
037db864
Pipeline
#12022
passed with stage
in 21 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
ClickHandler.java
src/client/java/com/owlmaddie/ui/ClickHandler.java
+1
-1
EntityBehaviorManager.java
src/main/java/com/owlmaddie/goals/EntityBehaviorManager.java
+2
-2
ServerPackets.java
src/main/java/com/owlmaddie/network/ServerPackets.java
+2
-2
No files found.
src/client/java/com/owlmaddie/ui/ClickHandler.java
View file @
49b03f7c
...
...
@@ -98,7 +98,7 @@ public class ClickHandler {
// Determine area clicked inside chat bubble (top, left, right)
String
hitRegion
=
determineHitRegion
(
closestHitResult
.
get
(),
closestBubbleData
.
position
,
camera
,
closestBubbleData
.
height
);
LOGGER
.
info
(
"Clicked region: "
+
hitRegion
);
LOGGER
.
debug
(
"Clicked region: "
+
hitRegion
);
if
(
chatData
.
status
==
ChatDataManager
.
ChatStatus
.
NONE
)
{
// Start conversation
...
...
src/main/java/com/owlmaddie/goals/EntityBehaviorManager.java
View file @
49b03f7c
...
...
@@ -39,7 +39,7 @@ public class EntityBehaviorManager {
GoalSelector
goalSelector
=
GoalUtils
.
getGoalSelector
(
entity
);
goalSelector
.
add
(
priority
.
getPriority
(),
goal
);
LOGGER
.
info
(
"Goal of type {} added to entity UUID: {}"
,
goal
.
getClass
().
getSimpleName
(),
entityId
);
LOGGER
.
debug
(
"Goal of type {} added to entity UUID: {}"
,
goal
.
getClass
().
getSimpleName
(),
entityId
);
}
public
static
void
removeGoal
(
MobEntity
entity
,
Class
<?
extends
Goal
>
goalClass
)
{
...
...
@@ -51,7 +51,7 @@ public class EntityBehaviorManager {
goals
.
removeIf
(
goal
->
{
if
(
goalClass
.
isInstance
(
goal
))
{
goalSelector
.
remove
(
goal
);
LOGGER
.
info
(
"Goal of type {} removed for entity UUID: {}"
,
goalClass
.
getSimpleName
(),
entityId
);
LOGGER
.
debug
(
"Goal of type {} removed for entity UUID: {}"
,
goalClass
.
getSimpleName
(),
entityId
);
return
true
;
}
return
false
;
...
...
src/main/java/com/owlmaddie/network/ServerPackets.java
View file @
49b03f7c
...
...
@@ -80,7 +80,7 @@ public class ServerPackets {
EntityBehaviorManager
.
addGoal
(
entity
,
talkGoal
,
GoalPriority
.
TALK_PLAYER
);
ChatDataManager
.
EntityChatData
chatData
=
ChatDataManager
.
getServerInstance
().
getOrCreateChatData
(
entity
.
getUuidAsString
());
LOGGER
.
info
(
"Update read lines to "
+
lineNumber
+
" for: "
+
entity
.
getType
().
toString
());
LOGGER
.
debug
(
"Update read lines to "
+
lineNumber
+
" for: "
+
entity
.
getType
().
toString
());
chatData
.
setLineNumber
(
lineNumber
);
}
});
...
...
@@ -100,7 +100,7 @@ public class ServerPackets {
EntityBehaviorManager
.
addGoal
(
entity
,
talkGoal
,
GoalPriority
.
TALK_PLAYER
);
ChatDataManager
.
EntityChatData
chatData
=
ChatDataManager
.
getServerInstance
().
getOrCreateChatData
(
entity
.
getUuidAsString
());
LOGGER
.
info
(
"Hiding chat bubble for: "
+
entity
.
getType
().
toString
());
LOGGER
.
debug
(
"Hiding chat bubble for: "
+
entity
.
getType
().
toString
());
chatData
.
setStatus
(
ChatDataManager
.
ChatStatus
.
valueOf
(
status_name
));
}
});
...
...
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