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
f8a4d053
Commit
f8a4d053
authored
Aug 06, 2024
by
Jonathan Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed crash when PROTECT behavior targets another player
parent
5405fc31
Pipeline
#12717
passed with stages
in 1 minute 51 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
CHANGELOG.md
CHANGELOG.md
+1
-0
ProtectPlayerGoal.java
src/main/java/com/owlmaddie/goals/ProtectPlayerGoal.java
+1
-1
No files found.
CHANGELOG.md
View file @
f8a4d053
...
...
@@ -20,6 +20,7 @@ All notable changes to **CreatureChat** are documented in this file. The format
### Fixed
-
Entity persistence is now fixed (after creating a character sheet). No more despawning mobs.
-
Fixed crash when PROTECT behavior targets another player
## [1.0.8] - 2024-07-16
...
...
src/main/java/com/owlmaddie/goals/ProtectPlayerGoal.java
View file @
f8a4d053
...
...
@@ -19,7 +19,7 @@ public class ProtectPlayerGoal extends AttackPlayerGoal {
@Override
public
boolean
canStart
()
{
MobEntity
lastAttackedByEntity
=
(
MobEntity
)
this
.
protectedEntity
.
getLastAttacker
();
LivingEntity
lastAttackedByEntity
=
this
.
protectedEntity
.
getLastAttacker
();
int
i
=
this
.
protectedEntity
.
getLastAttackedTime
();
if
(
i
!=
this
.
lastAttackedTime
&&
lastAttackedByEntity
!=
null
&&
!
this
.
attackerEntity
.
equals
(
lastAttackedByEntity
))
{
// Set target to attack
...
...
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