We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Region#encode currently skips ground items and projectiles and so updates for these wont be sent.
Region#encode
public Set<RegionUpdateMessage> encode(int height) { Set<RegionUpdateMessage> additions = entities.values().stream() .flatMap(Set::stream) // TODO fix this to work for ground items + projectiles .filter(entity -> entity instanceof DynamicGameObject && entity.getPosition().getHeight() == height) .map(entity -> ((GroupableEntity) entity).toUpdateOperation(this, EntityUpdateType.ADD).toMessage()) .collect(Collectors.toSet()); ImmutableSet.Builder<RegionUpdateMessage> builder = ImmutableSet.builder(); builder.addAll(additions).addAll(updates.get(height)).addAll(removedObjects.get(height)); return builder.build(); }
The text was updated successfully, but these errors were encountered:
Also make sure owner/dropper/creator sees his items first.
Sorry, something went wrong.
Yeah, this involves sending a separate frame (SendTileItemMessage). Probably want to introduce some sort of repository/manager for the items
SendTileItemMessage
Ground items are finished in #372
No branches or pull requests
Region#encode
currently skips ground items and projectiles and so updates for these wont be sent.The text was updated successfully, but these errors were encountered: