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

fabric 1.20.1 functional port #222

Open
wants to merge 200 commits into
base: 1.20.x
Choose a base branch
from

Conversation

marlester-dev
Copy link

No description provided.

src/main/java/twilightforest/TFMagicMapData.java Outdated Show resolved Hide resolved
src/main/java/twilightforest/TFMagicMapData.java Outdated Show resolved Hide resolved
@Tamaized
Copy link
Member

Tamaized commented Nov 7, 2024

Have you confirmed that every single method in AsmHooks gets triggered?
I normally test by placing a breakpoint in each method and removing them one by one as they get hit.

@@ -59,75 +65,91 @@ public class ForceFieldBlock extends Block implements SimpleWaterloggedBlock, En

public ForceFieldBlock(BlockBehaviour.Properties properties) {
super(properties);
this.registerDefaultState(this.getStateDefinition().any().setValue(WATERLOGGED, false)
this.registerDefaultState(this.getStateDefinition().any().setValue(WATERLOGGED, false).setValue(AXIS, Direction.Axis.Y)
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

@Tamaized Tamaized Nov 7, 2024

Choose a reason for hiding this comment

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

There's no AXIS property in the forge codebase.

Copy link
Member

Choose a reason for hiding this comment

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

In fact, this entire class doesn't match at all.

Copy link
Author

Choose a reason for hiding this comment

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

I guess I decided to use old force fields because I struggled with making the new ones work. I will try it one more time

Copy link
Member

@Tamaized Tamaized Nov 7, 2024

Choose a reason for hiding this comment

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

There must be full parity with the 1.20.1 forge codebase.

Copy link
Author

Choose a reason for hiding this comment

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

alright, I guess I will handle that giving that I have more idea of the code base now

@marlester-dev
Copy link
Author

Have you confirmed that every single method in AsmHooks gets triggered? I normally test by placing a breakpoint in each method and removing them one by one as they get hit.

The most of them are getting hit, though I will need to check the yellow ones tomorrow (book, lead, cloud, mountFix, getPlayerPOVHitResultForReach, renderMultiparts):
3725742

@marlester-dev
Copy link
Author

wait a moment.. why is asm using Java.type('net.minecraftforge.coremod.api.ASMAPI') if we are in fabric

@marlester-dev
Copy link
Author

marlester-dev commented Nov 10, 2024

bruh was it broken since 1.18

EDIT: I will be inactive for some time, I will let @IAFEnvoy work on this

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