Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
general
games
Mindustry
Commits
e92d5d2d
Commit
e92d5d2d
authored
2 years ago
by
Anuken
Browse files
Options
Download
Email Patches
Plain Diff
Fixed #8165
parent
411367f2
master
v146
v145.1
v145
v144.3
v144.2
v144.1
v144
v143.1
v143
v142
v141.3
v141.2
v141.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
annotations/src/main/java/mindustry/annotations/entity/EntityProcess.java
+1
-1
...main/java/mindustry/annotations/entity/EntityProcess.java
with
1 addition
and
1 deletion
+1
-1
annotations/src/main/java/mindustry/annotations/entity/EntityProcess.java
+
1
-
1
View file @
e92d5d2d
...
...
@@ -629,7 +629,7 @@ public class EntityProcess extends BaseProcessor{
groupsBuilder
.
addField
(
ParameterizedTypeName
.
get
(
ClassName
.
bestGuess
(
"mindustry.entities.EntityGroup"
),
itype
),
group
.
name
,
Modifier
.
PUBLIC
,
Modifier
.
STATIC
);
groupInit
.
addStatement
(
"$L = new $T<>($L.class, $L, $L, (e, pos) ->
((
$L.IndexableEntity__$L
)e)
.setIndex__$L(pos))"
,
group
.
name
,
groupc
,
itype
,
group
.
spatial
,
group
.
mapping
,
packageName
,
group
.
name
,
group
.
name
);
groupInit
.
addStatement
(
"$L = new $T<>($L.class, $L, $L, (e, pos) ->
{ if(e instanceof
$L.IndexableEntity__$L
ix) ix
.setIndex__$L(pos)
; }
)"
,
group
.
name
,
groupc
,
itype
,
group
.
spatial
,
group
.
mapping
,
packageName
,
group
.
name
,
group
.
name
);
}
//write the groups
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets