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
c3570501
Commit
c3570501
authored
Jul 24, 2022
by
KingRainbow44
Browse files
Fix remaining traces of `Player#getPos`
parent
41ec2316
Changes
2
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneTransToPointReq.java
View file @
c3570501
...
@@ -28,7 +28,7 @@ public class HandlerSceneTransToPointReq extends PacketHandler {
...
@@ -28,7 +28,7 @@ public class HandlerSceneTransToPointReq extends PacketHandler {
float
z
=
scenePointEntry
.
getPointData
().
getTranPos
().
getZ
();
float
z
=
scenePointEntry
.
getPointData
().
getTranPos
().
getZ
();
PlayerTeleportEvent
event
=
new
PlayerTeleportEvent
(
session
.
getPlayer
(),
PlayerTeleportEvent
.
TeleportType
.
WAYPOINT
,
PlayerTeleportEvent
event
=
new
PlayerTeleportEvent
(
session
.
getPlayer
(),
PlayerTeleportEvent
.
TeleportType
.
WAYPOINT
,
session
.
getPlayer
().
getPos
(),
new
Position
(
x
,
y
,
z
));
session
.
getPlayer
().
getPos
ition
(),
new
Position
(
x
,
y
,
z
));
event
.
call
();
event
.
call
();
if
(!
event
.
isCanceled
())
{
if
(!
event
.
isCanceled
())
{
...
...
src/main/java/emu/grasscutter/server/packet/recv/HandlerTryEnterHomeReq.java
View file @
c3570501
...
@@ -40,7 +40,7 @@ public class HandlerTryEnterHomeReq extends PacketHandler {
...
@@ -40,7 +40,7 @@ public class HandlerTryEnterHomeReq extends PacketHandler {
Position
pos
=
scene
.
getScriptManager
().
getConfig
().
born_pos
;
Position
pos
=
scene
.
getScriptManager
().
getConfig
().
born_pos
;
PlayerTeleportEvent
event
=
new
PlayerTeleportEvent
(
session
.
getPlayer
(),
PlayerTeleportEvent
.
TeleportType
.
WAYPOINT
,
PlayerTeleportEvent
event
=
new
PlayerTeleportEvent
(
session
.
getPlayer
(),
PlayerTeleportEvent
.
TeleportType
.
WAYPOINT
,
session
.
getPlayer
().
getPos
(),
pos
);
session
.
getPlayer
().
getPos
ition
(),
pos
);
event
.
call
();
event
.
call
();
if
(!
event
.
isCanceled
())
{
if
(!
event
.
isCanceled
())
{
...
...
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