mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-11-22 11:56:21 +01:00
Prefix field with viaFabricPlus$
This commit is contained in:
parent
4269453a5e
commit
8ddde7065b
@ -40,7 +40,7 @@ import java.util.Map;
|
||||
public abstract class MixinCustomPayloadS2CPacket {
|
||||
|
||||
@Unique
|
||||
private static final Map<Identifier, VersionEnum> PAYLOAD_DIFF = ImmutableMap.<Identifier, VersionEnum>builder()
|
||||
private static final Map<Identifier, VersionEnum> viaFabricPlus$PAYLOAD_DIFF = ImmutableMap.<Identifier, VersionEnum>builder()
|
||||
.put(BrandCustomPayload.ID, VersionEnum.c0_0_15a_1)
|
||||
.put(DebugGameTestAddMarkerCustomPayload.ID, VersionEnum.r1_14)
|
||||
.put(DebugGameTestClearCustomPayload.ID, VersionEnum.r1_14)
|
||||
@ -49,7 +49,7 @@ public abstract class MixinCustomPayloadS2CPacket {
|
||||
@Redirect(method = "readPayload", at = @At(value = "INVOKE", target = "Ljava/util/Map;get(Ljava/lang/Object;)Ljava/lang/Object;", remap = false))
|
||||
private static Object filterAllowedCustomPayloads(Map<?, ?> instance, Object identifier) {
|
||||
if (instance.containsKey(identifier)) {
|
||||
if (!PAYLOAD_DIFF.containsKey(identifier) || ProtocolHack.getTargetVersion().isOlderThan(PAYLOAD_DIFF.get(identifier))) {
|
||||
if (!viaFabricPlus$PAYLOAD_DIFF.containsKey(identifier) || ProtocolHack.getTargetVersion().isOlderThan(viaFabricPlus$PAYLOAD_DIFF.get(identifier))) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user