Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
f020cefd
Commit
f020cefd
authored
Jul 19, 2022
by
Melledy
Browse files
Set default player position to be the starting position
parent
5feabc8f
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/player/Player.java
View file @
f020cefd
...
@@ -199,9 +199,10 @@ public class Player {
...
@@ -199,9 +199,10 @@ public class Player {
this
.
deforestationManager
=
new
DeforestationManager
(
this
);
this
.
deforestationManager
=
new
DeforestationManager
(
this
);
this
.
insectCaptureManager
=
new
InsectCaptureManager
(
this
);
this
.
insectCaptureManager
=
new
InsectCaptureManager
(
this
);
this
.
questManager
=
new
QuestManager
(
this
);
this
.
questManager
=
new
QuestManager
(
this
);
this
.
position
=
new
Position
(
GameConstants
.
START_POSITION
);
this
.
position
=
new
Position
();
this
.
rotation
=
new
Position
(
0
,
307
,
0
);
this
.
rotation
=
new
Position
();
this
.
sceneId
=
3
;
this
.
regionId
=
1
;
this
.
properties
=
new
HashMap
<>();
this
.
properties
=
new
HashMap
<>();
for
(
PlayerProperty
prop
:
PlayerProperty
.
values
())
{
for
(
PlayerProperty
prop
:
PlayerProperty
.
values
())
{
if
(
prop
.
getId
()
<
10000
)
{
if
(
prop
.
getId
()
<
10000
)
{
...
@@ -222,9 +223,6 @@ public class Player {
...
@@ -222,9 +223,6 @@ public class Player {
this
.
unlockedFurnitureSuite
=
new
HashSet
<>();
this
.
unlockedFurnitureSuite
=
new
HashSet
<>();
this
.
activeForges
=
new
ArrayList
<>();
this
.
activeForges
=
new
ArrayList
<>();
this
.
unlockedRecipies
=
new
HashMap
<>();
this
.
unlockedRecipies
=
new
HashMap
<>();
this
.
setSceneId
(
3
);
this
.
setRegionId
(
1
);
this
.
sceneState
=
SceneLoadState
.
NONE
;
this
.
sceneState
=
SceneLoadState
.
NONE
;
this
.
attackResults
=
new
LinkedBlockingQueue
<>();
this
.
attackResults
=
new
LinkedBlockingQueue
<>();
...
@@ -272,8 +270,6 @@ public class Player {
...
@@ -272,8 +270,6 @@ public class Player {
this
.
setProperty
(
PlayerProperty
.
PROP_PLAYER_RESIN
,
160
,
false
);
this
.
setProperty
(
PlayerProperty
.
PROP_PLAYER_RESIN
,
160
,
false
);
this
.
getFlyCloakList
().
add
(
140001
);
this
.
getFlyCloakList
().
add
(
140001
);
this
.
getNameCardList
().
add
(
210001
);
this
.
getNameCardList
().
add
(
210001
);
this
.
getPosition
().
set
(
GameConstants
.
START_POSITION
);
this
.
getRotation
().
set
(
0
,
307
,
0
);
this
.
messageHandler
=
null
;
this
.
messageHandler
=
null
;
this
.
mapMarksManager
=
new
MapMarksManager
(
this
);
this
.
mapMarksManager
=
new
MapMarksManager
(
this
);
this
.
staminaManager
=
new
StaminaManager
(
this
);
this
.
staminaManager
=
new
StaminaManager
(
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