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

Fix default block data applying to all placed blocks #2969

Merged
merged 4 commits into from
Jun 25, 2020
Merged

Fix default block data applying to all placed blocks #2969

merged 4 commits into from
Jun 25, 2020

Conversation

ShaneBeee
Copy link
Contributor

Description

So one issue is settings blocks will always default to Bukkit's default block data.
The issue here is blocks such as fences, it will set a single fence post, and will not connect to blocks next to it. The reason this happens is because Skript sets the default block data.

This PR fixes it by not setting block data if no block data is determined (ie: using an aliases with no option block data properties)
If an alias which is not default is used, then the Block data of said alias will be applied to the set block.


Target Minecraft Versions: 1.13+
Requirements: none
Related Issues: #2292

@ShaneBeee ShaneBeee added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label May 6, 2020
@ShaneBeee ShaneBeee requested a review from a team May 7, 2020 12:05
@ShaneBeee ShaneBeee merged commit 0772bf9 into SkriptLang:master Jun 25, 2020
@ShaneBeee ShaneBeee deleted the fix/block-data branch August 6, 2020 19:07
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.

2 participants