mirror of
https://github.com/ViaVersion/ViaRewind.git
synced 2026-11-05 01:10:06 -05:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
007799734f
|
||
|
|
2a2cfd20a5
|
||
|
|
197288a47e | ||
|
|
44e478ebe7 | ||
|
|
14991b61e7 | ||
|
|
9c72c68d11 | ||
|
|
91643b8a53 | ||
|
|
45508ddf4d | ||
|
|
47535748c4 |
No files matched your search
@@ -0,0 +1 @@
|
||||
.gitea/CODEOWNERS linguist-detectable=false
|
||||
@@ -0,0 +1,3 @@
|
||||
# Pull requests request review from the eligible staff team(s).
|
||||
# One approval from either an Admin or Developer satisfies branch protection.
|
||||
* @trueog/Admins @trueog/Developers
|
||||
@@ -2,6 +2,7 @@ import de.florianreuth.baseproject.*
|
||||
|
||||
plugins {
|
||||
`java-library`
|
||||
eclipse
|
||||
id("io.papermc.hangar-publish-plugin")
|
||||
id("com.modrinth.minotaur")
|
||||
id("de.florianreuth.baseproject")
|
||||
|
||||
+17
@@ -253,6 +253,23 @@ public class EntityPacketRewriter1_9 extends VREntityRewriter<ClientboundPackets
|
||||
}
|
||||
});
|
||||
|
||||
protocol.registerClientbound(ClientboundPackets1_9.ANIMATE, new PacketHandlers() {
|
||||
@Override
|
||||
public void register() {
|
||||
map(Types.VAR_INT); // Entity id
|
||||
map(Types.UNSIGNED_BYTE); // Animation
|
||||
handler(wrapper -> {
|
||||
final short animation = wrapper.get(Types.UNSIGNED_BYTE, 0);
|
||||
// Action 1 is a hurt duplicate of entity status 2 (only ViaBackwards manufactures it)
|
||||
// and makes 1.8 clients re-flash mid-window; action 3 is offhand swing on 1.9+ but
|
||||
// eat food on 1.8. Cancel both, matching ViaVersion's reverse-direction handling.
|
||||
if (animation == 1 || animation == 3) {
|
||||
wrapper.cancel();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
protocol.registerClientbound(ClientboundPackets1_9.MOVE_ENTITY_POS, wrapper -> {
|
||||
final int entityId = wrapper.passthrough(Types.VAR_INT);
|
||||
final int deltaX = wrapper.read(Types.SHORT);
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# ONLY DISABLE IF YOU HAVE 1.9 COOLDOWN DISABLED ON YOUR SERVER
|
||||
# 1.8 PLAYERS MAY ASK WHY PVP IS NOT WORKING OTHERWISE.
|
||||
# REQUIRES A SERVER RESTART TO TAKE EFFECT
|
||||
cooldown-indicator: 'TITLE'
|
||||
cooldown-indicator: DISABLED
|
||||
#
|
||||
# Replaces Adventure mode with Survival mode for 1.7.x clients
|
||||
# Enable this option if your server is using the 'CanDestroy'
|
||||
@@ -14,31 +14,31 @@ replace-adventure: false
|
||||
#
|
||||
# Whether similar ones should replace 1.9 particles in
|
||||
# 1.8 and lower
|
||||
replace-particles: false
|
||||
replace-particles: true
|
||||
#
|
||||
# Max number of pages for written books before a client gets kicked
|
||||
max-book-pages: 100
|
||||
max-book-pages: 500
|
||||
#
|
||||
# Max number of characters in the json (!) string of a book page before a client gets kicked
|
||||
max-book-page-length: 5000
|
||||
#
|
||||
# Whether to emulate the 1.8+ world border for 1.7.x clients
|
||||
emulate-world-border: true
|
||||
emulate-world-border: false
|
||||
#
|
||||
# Always shows a mapped mob's original name, and not only when hovering over it with the cursor.
|
||||
always-show-original-mob-name: true
|
||||
#
|
||||
# The particle to show the world border for the 1.8+ world border for 1.7.x clients
|
||||
world-border-particle: 'fireworksSpark'
|
||||
world-border-particle: fireworksSpark
|
||||
#
|
||||
# If enabled, 1.8 players on 1.9+ servers can use /offhand to switch items between their main hand and offhand.
|
||||
enable-offhand: true
|
||||
enable-offhand: false
|
||||
#
|
||||
# Allows defining the offhand command
|
||||
offhand-command: '/offhand'
|
||||
offhand-command: /offhand
|
||||
#
|
||||
# If enabled, 1.8 players on 1.9+ servers will also experience the levitation effect by sending velocity packets.
|
||||
emulate-levitation-effect: true
|
||||
#
|
||||
# If enabled, 1.8 players will handle the player combat packet added in 1.9 by showing the custom death message above the hotbar.
|
||||
handle-player-combat-packet: true
|
||||
handle-player-combat-packet: false
|
||||
Reference in new issue
Block a user