1.17.1-rc-1
This commit is contained in:
1 parent
92eb46e8ad
commit
702789cab5
4 files changed
+6
-6
No files matched your search
+2
-2
@@ -4,8 +4,8 @@ org.gradle.jvmargs=-Xmx1G
|
|||||||
# Fabric Properties
|
# Fabric Properties
|
||||||
# check these on https://fabricmc.net/use
|
# check these on https://fabricmc.net/use
|
||||||
# or better: https://modmuss50.me/fabric.html
|
# or better: https://modmuss50.me/fabric.html
|
||||||
minecraft_version=1.17.1-pre3
|
minecraft_version=1.17.1-rc1
|
||||||
yarn_mappings=1.17.1-pre3+build.1
|
yarn_mappings=1.17.1-rc1+build.1
|
||||||
loader_version=0.11.6
|
loader_version=0.11.6
|
||||||
fabric_version=0.36.0+1.17
|
fabric_version=0.36.0+1.17
|
||||||
|
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ public class PlayerCommand
|
|||||||
Messenger.m(context.getSource(), "r Player ", "rb " + playerName, "r is already logged on");
|
Messenger.m(context.getSource(), "r Player ", "rb " + playerName, "r is already logged on");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
GameProfile profile = server.getUserCache().findByName(playerName);
|
GameProfile profile = server.getUserCache().findByName(playerName).orElse(null);
|
||||||
if (profile == null)
|
if (profile == null)
|
||||||
{
|
{
|
||||||
if (!CarpetSettings.allowSpawningOfflinePlayers)
|
if (!CarpetSettings.allowSpawningOfflinePlayers)
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ public class ServerPlayNetworkHandler_scarpetEventsMixin
|
|||||||
|
|
||||||
@Inject(method = "onPlayerAction", at = @At(
|
@Inject(method = "onPlayerAction", at = @At(
|
||||||
value = "INVOKE",
|
value = "INVOKE",
|
||||||
target = "Lnet/minecraft/server/network/ServerPlayerEntity;method_37413(Z)Z", // dropSelectedItem
|
target = "Lnet/minecraft/server/network/ServerPlayerEntity;dropSelectedItem(Z)Z", // dropSelectedItem
|
||||||
ordinal = 0,
|
ordinal = 0,
|
||||||
shift = At.Shift.BEFORE
|
shift = At.Shift.BEFORE
|
||||||
))
|
))
|
||||||
@@ -84,7 +84,7 @@ public class ServerPlayNetworkHandler_scarpetEventsMixin
|
|||||||
|
|
||||||
@Inject(method = "onPlayerAction", at = @At(
|
@Inject(method = "onPlayerAction", at = @At(
|
||||||
value = "INVOKE",
|
value = "INVOKE",
|
||||||
target = "Lnet/minecraft/server/network/ServerPlayerEntity;method_37413(Z)Z", // dropSelectedItem
|
target = "Lnet/minecraft/server/network/ServerPlayerEntity;dropSelectedItem(Z)Z", // dropSelectedItem
|
||||||
ordinal = 1,
|
ordinal = 1,
|
||||||
shift = At.Shift.BEFORE
|
shift = At.Shift.BEFORE
|
||||||
))
|
))
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ public class EntityPlayerMPFake extends ServerPlayerEntity
|
|||||||
UserCache.setUseRemote(false);
|
UserCache.setUseRemote(false);
|
||||||
GameProfile gameprofile;
|
GameProfile gameprofile;
|
||||||
try {
|
try {
|
||||||
gameprofile = server.getUserCache().findByName(username);
|
gameprofile = server.getUserCache().findByName(username).orElse(null);
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
UserCache.setUseRemote(server.isDedicated() && server.isOnlineMode());
|
UserCache.setUseRemote(server.isDedicated() && server.isOnlineMode());
|
||||||
|
|||||||
Reference in new issue
Block a user