-
-
Notifications
You must be signed in to change notification settings - Fork 213
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 API8 datafixers #2622
fix API8 datafixers #2622
Conversation
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.
This is definitely an odd section of the codebase, if you need some help with DFU, just give me a ping.
final Type<?> trackedType = spongeDataType.findFieldType(name); | ||
final OpticFinder<?> trackedFinder = DSL.fieldFinder(name, trackedType); | ||
|
||
return this.fixTypeEverywhereTyped("Entity" + name + "UserFix", this.getInputSchema().getType(TypeReferences.ENTITY), |
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.
This is where things go down hill...
So TypeReferences.ENTITY
does not exist on any schemas of Sponge's datafixer.
This means this will fail to fix, hard fail. The solution to this is the include minecraft's own schema into your datafixer, at a lower version than sponge's current schema version so the type reference exists.
Even then, there is a whole extra can of beans with the entity type reference, but that is closer to how modded entities are handled during registration.
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.
However that itself can be a mess, and I need to sleep. So I can clarify tomorrow.
@@ -35,12 +38,13 @@ | |||
import java.util.Map; | |||
import java.util.UUID; | |||
|
|||
public class PlayerRespawnData implements IFixableData { | |||
// TODO this is actually doing nothing? | |||
public class PlayerRespawnData extends DataFix { | |||
|
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.
You'd probably want to call this PlayerRespawnDataFix
Signed-off-by: Gabriel Harris-Rouquette <[email protected]>
Merged into api-8. |
after #2620