-
-
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
API8 fixes #2609
API8 fixes #2609
Conversation
Teleport code still needs a thorough check
@@ -49,8 +49,8 @@ public SpongeEntityDamageSourceBuilder entity(final Entity entity) { | |||
public EntityDamageSource build() throws IllegalStateException { | |||
checkState(this.damageType != null, "Damage type cannot be null!"); | |||
checkState(this.reference.get() != null); | |||
final net.minecraft.util.EntityDamageSource damageSource = | |||
new net.minecraft.util.EntityDamageSource(this.damageType.getId(), (net.minecraft.entity.Entity) this.reference.get()); | |||
final net.minecraft.util.EntityDamageSource damageSource = // TODO damageType String is used for the translation key! |
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 negotiated based on the mixin and damage source to type provider.
...cessors/java/org/spongepowered/common/accessor/entity/player/ServerPlayerEntityAccessor.java
Show resolved
Hide resolved
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.
Turn on local variable can be final inspection and fix them. There's also some areas where it just looks really long or nested method calls that should be local variables (the compiler can take care of inlining).
src/main/java/org/spongepowered/common/bridge/block/DyeColorBlockBridge.java
Outdated
Show resolved
Hide resolved
src/main/java/org/spongepowered/common/data/provider/DataProviderRegistry.java
Outdated
Show resolved
Hide resolved
src/main/java/org/spongepowered/common/data/provider/DataProviderRegistry.java
Outdated
Show resolved
Hide resolved
src/main/java/org/spongepowered/common/data/provider/DataProviderRegistry.java
Outdated
Show resolved
Hide resolved
src/main/java/org/spongepowered/common/data/provider/DataProviderRegistry.java
Outdated
Show resolved
Hide resolved
if (fromClientDimId == toClientDimId) { | ||
final int fakeDimId; | ||
switch (fromClientDimId) { | ||
if (fromType == toType) { |
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.
@Zidane is this right with dimension handling? I'd imagine the type could be the same but the dimension id assigned by the WorldManager could be different?
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 to send a fake respawn packet to vanilla clients in case the dimension type is not changing.
This entire teleport things needs extensive testing anyways once we can actually start a server.
Maybe its not needed anymore?
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.
No you still have to fake sent a dimension change else you must send an unload packet for every chunk.
That is not including the other fun things the client sets based on the dimension.
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 think this is still mentioned in the protocol wiki
src/main/java/org/spongepowered/common/event/tracking/phase/plugin/ListenerPhaseContext.java
Outdated
Show resolved
Hide resolved
other DataCompoundHolder impls are gone?
trying to fix explosion mixins (smoking parameter does not exist)
@gabizou unsure about the ChunkManagerMixin_Tracker where the target is a lambda
a bunch of fixes for the API8 implementation