-
Notifications
You must be signed in to change notification settings - Fork 37
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
1.21.2 #305
1.21.2 #305
Conversation
@@ -21,7 +21,7 @@ public int run(CommandContext<ServerCommandSource> context) throws CommandSyntax | |||
return 0; | |||
} | |||
|
|||
player.kill(); | |||
player.kill(player.server.getWorld(player.getWorld().getRegistryKey())); |
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.
lmao
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.
yeah so apparently players can now not be in a world
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.
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.
players can now not be in a world
I somehow read the as the opposite of what you wrote. If that's actually a thing, maybe steal what /kill
does - source.getContext().getWorld()
(E: Wait, how does that work for console command-sender?!)
@@ -122,7 +120,7 @@ public void onRespawnPlayer_forResawnLocationOverwrite( | |||
Vec3d.ZERO, | |||
0, | |||
0, | |||
false, | |||
PositionFlag.ROT, |
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.
since this is a respawn, I think we should just have nothing be "relative" to current position, so I'd just drop this parameter.
@@ -15,11 +16,13 @@ | |||
@Mixin(ServerPlayNetworkHandler.class) | |||
public class ServerPlayNetworkHandlerMixin { | |||
|
|||
@Unique |
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.
nice, +1
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.
blame the IDE, I wouldn't've caught it
@Shadow | ||
public abstract boolean damage(ServerWorld world, DamageSource source, float amount); | ||
|
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.
What's this for?
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.
Doubt past Arno would have a better answer for this, but present Arno really doesn't have a clue, doesn't even seem to have any usages, consider it gone
@@ -35,9 +35,8 @@ private static void execute( | |||
@Coerce Object facingLocation, | |||
CallbackInfo ci | |||
) throws CommandSyntaxException { | |||
if (target instanceof ServerPlayerEntity) { | |||
if (target instanceof ServerPlayerEntity targetPlayer) { |
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.
Evidently I am living in the past. Did not know instanceof
could be a pattern-matching declaration operator-thing. Cool!
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.
IntelliJ starts complaining when I don't do it for some reason
@@ -65,7 +66,8 @@ private static void execTeleport(ServerPlayerEntity playerEntity, MinecraftLocat | |||
playerEntity.teleport( | |||
targetWorld, | |||
dest.pos().x, dest.pos().y, dest.pos().z, | |||
dest.headYaw(), dest.pitch() | |||
PositionFlag.ROT, dest.headYaw(), dest.pitch(), |
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.
Because we're setting the yaw and pitch explicitly from the dest
, I don't think we want any relative positioning on ROT here. (I thing and empty set (Set.of()
) would be what we want, probably?)
(Though this makes me realize an optional pitch
/headYaw
on MinecraftLocation
may be useful, but that is a consideration for another time :P)
// hungerManager.setExhaustion(0); | ||
// idk, you ca only add to it now |
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.
good call out, will address in #306
Thanks for doing this! Is a massive help (btw if you'd prefer I just push changes to your branch for this ^ style of review, just lmk) |
build.gradle
Outdated
@@ -1,6 +1,6 @@ | |||
plugins { | |||
id 'groovy' | |||
id 'fabric-loom' version '1.6-SNAPSHOT' | |||
id 'fabric-loom' version '1.8-SNAPSHOT' |
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 can't seem to get genSources
to work with fabric-loom
@ 1.8, so I'd recommend downgrading to 1.7 unless it breaks something else (doesn't appear to?).
id 'fabric-loom' version '1.8-SNAPSHOT' | |
id 'fabric-loom' version '1.7-SNAPSHOT' |
@@ -1,6 +1,6 @@ | |||
plugins { | |||
id 'groovy' | |||
id 'fabric-loom' version '1.8-SNAPSHOT' | |||
id 'fabric-loom' version '1.7-SNAPSHOT' |
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.
🤔
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.
(see the comment above this one)
This is visible right? (I've managed to have my review comments not posted in the past... lol)
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.
depends on which commits are selected it seems, it does show at that link, just not on this link, probably because the comment is on a line that doesn't exist anymore
f4da03a
to
4a48aea
Compare
this seems to get rid of the crashing
from basic testing all seems good ~~guess we'll find out soon enough after release~~
Thanks! I'll merge this but publish for 1.21.3. |
there's a deprecation warning on HeightFindingStrategy.java#58
other than that, it seems fine, the server starts, haven't been able to test more than that
actions refused to run, so updated those