Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Jun 29, 2021

Currently fully working. Tested on PocketMine-MP 3.21.0

zyware and others added 3 commits June 29, 2021 04:23
Poggit-CI is enabled for this repo by @michoudll
Visit the Poggit-CI page for this repo at https://poggit.pmmp.io/ci/Deepslate/MapImageEngine
$this->data->buffer[$pos++] = chr($color >> 24 & 0xff);
$this->data->buffer[$pos++] = chr($color >> 16 & 0xff);
$this->data->buffer[$pos++] = chr($color >> 8 & 0xff);
$this->data->buffer[$pos] = chr($color & 0xff);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you removed two spaces before the = sign that were present to make the last chr call aligned with the previous ones.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i just used code styles from pmmp. does this affect the final work of the plugin?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No but you shouldn't change the formatting of the code for no reason at all

Copy link
Author

@ghost ghost Jul 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i changed the formatting back, the author hasn't been here for a long time, so i think nothing will change.

$this->data->buffer[$pos++] = chr($color & 0xff);
$this->data->buffer[$pos++] = chr($color >> 8 & 0xff);
$this->data->buffer[$pos++] = chr($color >> 16 & 0xff);
$this->data->buffer[$pos] = chr($color >> 24 & 0xff);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also here (I didn't notice before)

@FaigerSYS FaigerSYS merged commit bd83f15 into FaigerSYS:master Jul 7, 2021
@ghost ghost mentioned this pull request Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants