Only load groups that have a business type of 0

This commit is contained in:
Melledy 2022-05-18 05:10:45 -07:00
parent b375881a3e
commit 4b5f5b3db5

View File

@ -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();