Commit 4b5f5b3d authored by Melledy's avatar Melledy
Browse files

Only load groups that have a business type of 0

parent b375881a
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment