Bump version to 2.2.8-SNAPSHOT

This commit is contained in:
RaphiMC 2023-06-18 15:31:28 +02:00
parent 008ab37003
commit 8b628cad9f
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94
4 changed files with 2 additions and 71 deletions

View File

@ -37,7 +37,7 @@ repositories {
dependencies {
compileOnly "com.viaversion:viaversion:4.7.1-SNAPSHOT"
compileOnly("com.viaversion:viabackwards-common:4.7.0") {
compileOnly("com.viaversion:viabackwards-common:4.7.1-SNAPSHOT") {
exclude group: "com.viaversion", module: "viaversion"
exclude group: "io.netty", module: "netty-all"
}

View File

@ -6,4 +6,4 @@ org.gradle.configureondemand=true
# Project properties
maven_name=ViaLoader
maven_group=net.raphimc
maven_version=2.2.7
maven_version=2.2.8-SNAPSHOT

View File

@ -1,65 +0,0 @@
/*
* This file is part of ViaLoader - https://github.com/RaphiMC/ViaLoader
* Copyright (C) 2023 RK_01/RaphiMC and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package net.raphimc.vialoader.impl.providers;
import com.viaversion.viaversion.api.Via;
import com.viaversion.viaversion.api.connection.UserConnection;
import com.viaversion.viaversion.api.protocol.packet.PacketWrapper;
import com.viaversion.viaversion.api.protocol.packet.State;
import com.viaversion.viaversion.api.type.Type;
import com.viaversion.viaversion.protocols.protocol1_8.ServerboundPackets1_8;
import com.viaversion.viaversion.protocols.protocol1_9to1_8.Protocol1_9To1_8;
import com.viaversion.viaversion.protocols.protocol1_9to1_8.providers.MovementTransmitterProvider;
import com.viaversion.viaversion.protocols.protocol1_9to1_8.storage.MovementTracker;
import java.util.logging.Level;
public class VLMovementTransmitterProvider extends MovementTransmitterProvider {
@Override
public Object getFlyingPacket() {
return null;
}
@Override
public Object getGroundPacket() {
return null;
}
@Override
public void sendPlayer(UserConnection user) {
if (user.getProtocolInfo().getState() != State.PLAY) {
return;
}
if (user.getEntityTracker(Protocol1_9To1_8.class).clientEntityId() == -1) {
return;
}
final MovementTracker movementTracker = user.get(MovementTracker.class);
movementTracker.incrementIdlePacket();
try {
final PacketWrapper playerMovement = PacketWrapper.create(ServerboundPackets1_8.PLAYER_MOVEMENT, user);
playerMovement.write(Type.BOOLEAN, movementTracker.isGround()); // on ground
playerMovement.scheduleSendToServer(Protocol1_9To1_8.class);
} catch (Throwable e) {
Via.getPlatform().getLogger().log(Level.WARNING, "Failed to send player movement packet", e);
}
}
}

View File

@ -17,16 +17,12 @@
*/
package net.raphimc.vialoader.impl.viaversion;
import com.viaversion.viaversion.api.Via;
import com.viaversion.viaversion.api.platform.ViaPlatformLoader;
import com.viaversion.viaversion.protocols.protocol1_9to1_8.providers.MovementTransmitterProvider;
import net.raphimc.vialoader.impl.providers.VLMovementTransmitterProvider;
public class VLLoader implements ViaPlatformLoader {
@Override
public void load() {
Via.getManager().getProviders().use(MovementTransmitterProvider.class, new VLMovementTransmitterProvider());
}
@Override