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
4b5f5b3d
Commit
4b5f5b3d
authored
May 18, 2022
by
Melledy
Browse files
Only load groups that have a business type of 0
parent
b375881a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/world/Scene.java
View file @
4b5f5b3d
...
...
@@ -534,8 +534,9 @@ public class Scene {
var
sceneGroups
=
SceneIndexManager
.
queryNeighbors
(
block
.
sceneGroupIndex
,
player
.
getPos
(),
RANGE
);
var
groups
=
new
ArrayList
<>(
sceneGroups
.
stream
()
.
filter
(
group
->
!
scriptManager
.
getLoadedGroupSetPerBlock
().
get
(
block
.
id
).
contains
(
group
))
.
peek
(
group
->
scriptManager
.
getLoadedGroupSetPerBlock
().
get
(
block
.
id
).
add
(
group
)).
toList
());
.
filter
(
group
->
!
scriptManager
.
getLoadedGroupSetPerBlock
().
get
(
block
.
id
).
contains
(
group
)
&&
group
.
getBusinessType
()
==
0
)
.
peek
(
group
->
scriptManager
.
getLoadedGroupSetPerBlock
().
get
(
block
.
id
).
add
(
group
))
.
toList
());
if
(
groups
.
size
()
==
0
){
return
List
.
of
();
...
...
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