PrincessCyanMarine / SimpleVeinminer

A Simple Veinminer for Fabric
Other
3 stars 4 forks source link

Enabling server side veinmining and disabling shaped based veinmining in config does not work for some vanillaish clients [v1.3.2] #6

Open fmpreferences opened 2 years ago

fmpreferences commented 2 years ago

Tested on a quilt server with only veinmining mod and quilted fabric api, client mods: image Error thrown:

[11:49:28] [Render thread/INFO]: emissive suffixes loaded: {_e}
[11:49:28] [Render thread/INFO]: Connecting to [server removed]
[11:49:30] [Render thread/INFO]: Started 10 worker threads
[11:49:30] [Render thread/ERROR]: Registry remapping failed!
net.fabricmc.fabric.impl.registry.sync.RemapException: Received ID map for minecraft:command_argument_type contains IDs unknown to the receiver!
 - simple_veinminer:veinmining_shape
    at net.minecraft.class_2370.remap(class_2370.java:2205) ~[client-intermediary.jar:?]
    at net.fabricmc.fabric.impl.registry.sync.RegistrySyncManager.apply(RegistrySyncManager.java:323) ~[fabric-registry-sync-v0-2.0.0-beta.8+0.57.0-1.19.jar-da38317a-39b7-4658-ba73-b0e239566c32-nested.jar:?]
    at net.fabricmc.fabric.impl.registry.sync.RegistrySyncManager.lambda$receivePacket$0(RegistrySyncManager.java:127) ~[fabric-registry-sync-v0-2.0.0-beta.8+0.57.0-1.19.jar-da38317a-39b7-4658-ba73-b0e239566c32-nested.jar:?]
    at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) [?:?]
    at net.minecraft.class_1255.method_18859(class_1255.java:157) [client-intermediary.jar:?]
    at net.minecraft.class_4093.method_18859(class_4093.java:23) [client-intermediary.jar:?]
    at net.minecraft.class_1255.method_16075(class_1255.java:131) [client-intermediary.jar:?]
    at net.minecraft.class_1255.method_5383(class_1255.java:116) [client-intermediary.jar:?]
    at net.minecraft.class_310.method_1523(class_310.java:1095) [client-intermediary.jar:?]
    at net.minecraft.class_310.method_1514(class_310.java:734) [client-intermediary.jar:?]
    at net.minecraft.client.main.Main.main(Main.java:237) [client-intermediary.jar:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
    at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
    at org.quiltmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:423) [quilt-loader-0.17.0.jar:?]
    at org.quiltmc.loader.impl.launch.knot.Knot.launch(Knot.java:76) [quilt-loader-0.17.0.jar:?]
    at org.quiltmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:24) [quilt-loader-0.17.0.jar:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
    at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
    at org.multimc.impl.OneSixLauncher.invokeMain(OneSixLauncher.java:104) [NewLaunch.jar:?]
    at org.multimc.impl.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:175) [NewLaunch.jar:?]
    at org.multimc.impl.OneSixLauncher.launch(OneSixLauncher.java:185) [NewLaunch.jar:?]
    at org.multimc.EntryPoint.listen(EntryPoint.java:127) [NewLaunch.jar:?]
    at org.multimc.EntryPoint.main(EntryPoint.java:57) [NewLaunch.jar:?]
[11:49:30] [Render thread/INFO]: Stopping worker threads
[11:49:30] [Render thread/INFO]: Started 10 worker threads
[11:49:30] [Render thread/INFO]: Stopping worker threads

image error given when i use some "optifine" ish mods (using only quilted fabric api disconnect but says nothing) [16:50:03] [Server thread/INFO]: Gamerule doServerSideVeinmining is currently set to: true Confirmation server is on

durability {
    consumeOnInstantBreak=false
    damageMultiplier=1.0
    swordMultiplier=2.0
}
exhaustion {
    baseValue=0.3
    exhaust=true
    exhaustionBasedOnHardness=true
    hardnessWeight=0.1
}
limits {
    materialBasedLimits=false
    maxBlocks=150
}
restrictions {
    allowShapedVeinmining=false
    # Will only allow to veinmine wood using an axe, dirt using a shovel, stone using a pickaxe, etc.
    canOnlyUseSuitableTools=true
    canVeinmineHungry=false
    canVeinmineWithEmptyHand=false
    creativeBypass=true
    restrictionList {
        # More information at https://github.com/PrincessCyanMarine/Simple-Veinminer/wiki/Whitelist-and-Blacklist
        list=[
            "#c:logs",
            "#c:ores"
        ]
        # Valid values are NONE, BLACKLIST, and WHITELIST
        listType=WHITELIST
    }
}

Server config

NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

/etc/os-release

btw connecting to the server works when using both completely vanilla, or using quilt or fabric with nothing in it, but not with fabric api