Skip to content
New issue

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

KOTH: Hill colour doesn't change to king team colour #461

Open
jellz opened this issue May 16, 2019 · 2 comments

Comments

Projects
None yet
3 participants
@jellz
Copy link
Member

commented May 16, 2019

No description provided.

@Draem

This comment has been minimized.

Copy link
Contributor

commented May 16, 2019

The new 1.13 attempt seems to not have anything that would actually change the colour lol

@Draem

This comment has been minimized.

Copy link
Contributor

commented May 16, 2019

I mean it doesn't even reference the controller, and it doesn't use the team passed in.

    private void renderBlocks(MatchTeam matchTeam) { //TODO Test for 1.13
        Location center = region.getCenter();

        double percent = Math.toRadians(getPercent() * 3.6);

        for (Block block : region.getBlocks()) {
            if (!Blocks.isVisualMaterial(block.getType())) continue;

            double angle = Math.atan2(block.getZ() - center.getZ(), block.getX() - center.getX());

            if (angle < 0) angle += 2 * Math.PI;

            block.setType(regionSave.getBlockAt(new BlockVector(block.getLocation().toVector())));
        }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.