-
Notifications
You must be signed in to change notification settings - Fork 47
Update to 25w36b #215
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
Update to 25w36b #215
Changes from 4 commits
3089e00
590dad8
06073f4
d40042e
965ae54
898dc93
8c1f167
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # | ||
| # https://help.github.com/articles/dealing-with-line-endings/ | ||
| # | ||
| # Linux start script should use lf | ||
| /gradlew text eol=lf | ||
|
|
||
| # These are Windows script files and should use crlf | ||
| *.bat text eol=crlf | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,13 +41,7 @@ | |
| import org.ladysnake.cca.internal.base.asm.StaticComponentLoadingException; | ||
| import org.ladysnake.cca.internal.base.asm.StaticComponentPluginBase; | ||
|
|
||
| import java.util.ArrayList; | ||
| import java.util.Collections; | ||
| import java.util.LinkedHashMap; | ||
| import java.util.LinkedHashSet; | ||
| import java.util.List; | ||
| import java.util.Map; | ||
| import java.util.Set; | ||
| import java.util.*; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm partial to standardize on avoiding star imports, could you configure your formatter to avoid them in this codebase ? |
||
| import java.util.function.Predicate; | ||
|
|
||
| public final class StaticBlockComponentPlugin extends LazyDispatcher implements BlockComponentFactoryRegistry { | ||
|
|
@@ -68,13 +62,13 @@ private StaticBlockComponentPlugin() { | |
|
|
||
| @Nullable | ||
| public <T extends BlockEntity> BlockEntityTicker<T> getComponentTicker(World world, T be, @Nullable BlockEntityTicker<T> base) { | ||
| if (world.isClient && this.clientTicking.contains(be.getClass())) { | ||
| if (world.isClient() && this.clientTicking.contains(be.getClass())) { | ||
| if (base == null) return (w, pos, state, blockEntity) -> blockEntity.asComponentProvider().getComponentContainer().tickClientComponents(); | ||
| return (w, pos, state, blockEntity) -> { | ||
| blockEntity.asComponentProvider().getComponentContainer().tickClientComponents(); | ||
| base.tick(w, pos, state, blockEntity); | ||
| }; | ||
| } else if (!world.isClient && this.serverTicking.contains(be.getClass())) { | ||
| } else if (!world.isClient() && this.serverTicking.contains(be.getClass())) { | ||
| if (base == null) return (w, pos, state, blockEntity) -> blockEntity.asComponentProvider().getComponentContainer().tickServerComponents(); | ||
| return (w, pos, state, blockEntity) -> { | ||
| blockEntity.asComponentProvider().getComponentContainer().tickServerComponents(); | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is what broke the workflow, the license task needs a git history to work