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
d85995f6
Commit
d85995f6
authored
2 years ago
by
Anuken
Browse files
Options
Download
Email Patches
Plain Diff
Fixed #8557
parent
bc622bd7
master
v146
v145.1
v145
v144.3
v144.2
v144.1
v144
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/mindustry/mod/ContentParser.java
+2
-2
core/src/mindustry/mod/ContentParser.java
with
2 additions
and
2 deletions
+2
-2
core/src/mindustry/mod/ContentParser.java
+
2
-
2
View file @
d85995f6
...
...
@@ -575,7 +575,7 @@ public class ContentParser{
if
(!
value
.
has
(
"sector"
)
||
!
value
.
get
(
"sector"
).
isNumber
())
throw
new
RuntimeException
(
"SectorPresets must have a sector number."
);
SectorPreset
out
=
new
SectorPreset
(
name
);
SectorPreset
out
=
new
SectorPreset
(
mod
+
"-"
+
name
);
currentContent
=
out
;
read
(()
->
{
...
...
@@ -596,7 +596,7 @@ public class ContentParser{
if
(
value
.
isString
())
return
locate
(
ContentType
.
planet
,
name
);
Planet
parent
=
locate
(
ContentType
.
planet
,
value
.
getString
(
"parent"
));
Planet
planet
=
new
Planet
(
name
,
parent
,
value
.
getFloat
(
"radius"
,
1
f
),
value
.
getInt
(
"sectorSize"
,
0
));
Planet
planet
=
new
Planet
(
mod
+
"-"
+
name
,
parent
,
value
.
getFloat
(
"radius"
,
1
f
),
value
.
getInt
(
"sectorSize"
,
0
));
if
(
value
.
has
(
"mesh"
)){
var
mesh
=
value
.
get
(
"mesh"
);
...
...
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