Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Fix compile on JDK 8 and bad merge
Dieser Commit ist enthalten in:
Ursprung
09f71dede9
Commit
d1a5d8dd82
@ -299,7 +299,6 @@ public class ClientPlaySessionHandler implements MinecraftSessionHandler {
|
|||||||
if (!spawned) {
|
if (!spawned) {
|
||||||
// Nothing special to do with regards to spawning the player
|
// Nothing special to do with regards to spawning the player
|
||||||
spawned = true;
|
spawned = true;
|
||||||
player.getConnection().delayedWrite(joinGame);
|
|
||||||
|
|
||||||
destination.setActiveDimensionRegistry(joinGame.getDimensionRegistry()); // 1.16
|
destination.setActiveDimensionRegistry(joinGame.getDimensionRegistry()); // 1.16
|
||||||
player.getConnection().delayedWrite(joinGame);
|
player.getConnection().delayedWrite(joinGame);
|
||||||
|
@ -48,13 +48,12 @@ public final class DimensionData {
|
|||||||
@Nullable Long fixedTime, @Nullable Boolean createDragonFight) {
|
@Nullable Long fixedTime, @Nullable Boolean createDragonFight) {
|
||||||
Preconditions.checkNotNull(
|
Preconditions.checkNotNull(
|
||||||
registryIdentifier, "registryIdentifier cannot be null");
|
registryIdentifier, "registryIdentifier cannot be null");
|
||||||
Preconditions.checkArgument(registryIdentifier.length() > 0 && !registryIdentifier.isBlank(),
|
Preconditions.checkArgument(registryIdentifier.length() > 0,
|
||||||
"registryIdentifier cannot be empty");
|
"registryIdentifier cannot be empty");
|
||||||
Preconditions.checkArgument(logicalHeight >= 0, "localHeight must be >= 0");
|
Preconditions.checkArgument(logicalHeight >= 0, "localHeight must be >= 0");
|
||||||
Preconditions.checkNotNull(
|
Preconditions.checkNotNull(
|
||||||
burningBehaviourIdentifier, "burningBehaviourIdentifier cannot be null");
|
burningBehaviourIdentifier, "burningBehaviourIdentifier cannot be null");
|
||||||
Preconditions.checkArgument(burningBehaviourIdentifier.length() > 0
|
Preconditions.checkArgument(burningBehaviourIdentifier.length() > 0,
|
||||||
&& !burningBehaviourIdentifier.isBlank(),
|
|
||||||
"burningBehaviourIdentifier cannot be empty");
|
"burningBehaviourIdentifier cannot be empty");
|
||||||
this.registryIdentifier = registryIdentifier;
|
this.registryIdentifier = registryIdentifier;
|
||||||
this.isNatural = isNatural;
|
this.isNatural = isNatural;
|
||||||
|
@ -21,12 +21,12 @@ public final class DimensionInfo {
|
|||||||
this.registryIdentifier = Preconditions.checkNotNull(
|
this.registryIdentifier = Preconditions.checkNotNull(
|
||||||
registryIdentifier, "registryIdentifier cannot be null");
|
registryIdentifier, "registryIdentifier cannot be null");
|
||||||
Preconditions.checkArgument(
|
Preconditions.checkArgument(
|
||||||
registryIdentifier.length() > 0 && !registryIdentifier.isBlank(),
|
registryIdentifier.length() > 0,
|
||||||
"registryIdentifier cannot be empty");
|
"registryIdentifier cannot be empty");
|
||||||
this.levelName = Preconditions.checkNotNull(
|
this.levelName = Preconditions.checkNotNull(
|
||||||
levelName, "levelName cannot be null");
|
levelName, "levelName cannot be null");
|
||||||
Preconditions.checkArgument(
|
Preconditions.checkArgument(
|
||||||
levelName.length() > 0 && !levelName.isBlank(),
|
levelName.length() > 0,
|
||||||
"registryIdentifier cannot be empty");
|
"registryIdentifier cannot be empty");
|
||||||
this.isFlat = isFlat;
|
this.isFlat = isFlat;
|
||||||
this.isDebugType = isDebugType;
|
this.isDebugType = isDebugType;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren