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
037db864
Commit
037db864
authored
Apr 25, 2024
by
Jonathan Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixing onItemGiven to trigger every single time, instead of only when the item is needed.
parent
3f6d7479
Pipeline
#12021
passed with stage
in 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
MixinMobEntity.java
src/main/java/com/owlmaddie/mixin/MixinMobEntity.java
+0
-5
No files found.
src/main/java/com/owlmaddie/mixin/MixinMobEntity.java
View file @
037db864
...
...
@@ -21,11 +21,6 @@ public class MixinMobEntity {
@Inject
(
method
=
"interact"
,
at
=
@At
(
value
=
"RETURN"
))
private
void
onItemGiven
(
PlayerEntity
player
,
Hand
hand
,
CallbackInfoReturnable
<
ActionResult
>
cir
)
{
if
(!
cir
.
getReturnValue
().
isAccepted
()
||
player
.
getWorld
().
isClient
())
{
// If interaction was not successful, return early
return
;
}
ItemStack
itemStack
=
player
.
getStackInHand
(
hand
);
MobEntity
thisEntity
=
(
MobEntity
)
(
Object
)
this
;
...
...
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