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

NewBlockCompat - fix issue with bisected blocks alternatively placing #3703

Merged
merged 1 commit into from
Mar 21, 2021
Merged

NewBlockCompat - fix issue with bisected blocks alternatively placing #3703

merged 1 commit into from
Mar 21, 2021

Conversation

ShaneBeee
Copy link
Contributor

Description

When setting a block to a bisected block (such as a door or bed), it will alternate the bisection.
ie: set a block to a door, it sets correctly. Repeat that task, and it will set at the block below. This is caused by Skript changing the ItemType's ItemData to the opposing bisection, causing blocks to alternate.
By cloning the original data, we don't have to change it.


Target Minecraft Versions: 1.13+
Requirements: None
Related Issues: #2473

- By not cloning the data, the original data is set to the opposing state (up/down), therefor placing the next block starts with the opposing state
@ShaneBeee ShaneBeee added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. 2.5 labels Jan 23, 2021
APickledWalrus
APickledWalrus previously approved these changes Mar 1, 2021
@Whimsyturtle Whimsyturtle changed the base branch from dev-2.5 to master March 21, 2021 00:32
@Whimsyturtle Whimsyturtle dismissed APickledWalrus’s stale review March 21, 2021 00:32

The base branch was changed.

@Whimsyturtle Whimsyturtle merged commit 209bcbf into SkriptLang:master Mar 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants