thomas15v / NoXray

Xray prevention plugin for sponge
MIT License
9 stars 1 forks source link

While doing a lot of mining obfuscated blocks appear #22

Open BrainStone opened 6 years ago

BrainStone commented 6 years ago

When player do lots of mining sometimes they can see the obfuscated blocks. When they rejoin it's all fine.

I use this config:

Config {
    # Enable or disable caching fake chunks on disk
    Cache=true
    Deobfuscation {
        # Radius to deobfuscate on natural block update, between 1 and 4
        NaturalRadius=1
        # Radius to deobfuscate on player block update, between 1 and 4
        PlayerRadius=2
    }
    # Enable or disable AntiXray in this world
    Enabled=true
    # Temporary obfuscation when modifiers are not ready yet
    Preobfuscation {
        # Blocks that will be hidden by the modifier
        Blocks=[
            "minecraft:emerald_ore",
            "minecraft:gold_ore",
            "minecraft:iron_ore",
            "minecraft:lapis_ore",
            "minecraft:diamond_ore",
            "minecraft:redstone_ore",
            "minecraft:coal_ore"
        ]
        # Enable or disable preobfuscation in this world
        Enabled=false
        # The block used to replace hidden blocks
        Replacement="minecraft:stone[variant=stone]"
    }
    # The seed used by the modifier, shouldn't be modified
    Seed=-4700353378019659133
}
Modifiers=[
    {
        Id=bedrock
        Options {
            # The ground type used to hide real bedrock
            Ground="minecraft:stone[variant=stone]"
            # The maximum layer where bedrock can be generated
            Height=5
        }
    },
    {
        Id=random
        Options {
            # Blocks that will be hidden by the modifier
            Blocks=[
                "minecraft:emerald_ore",
                "minecraft:gold_ore",
                "minecraft:iron_ore",
                "minecraft:lapis_ore",
                "minecraft:diamond_ore",
                "minecraft:redstone_ore",
                "minecraft:obsidian",
                "minecraft:gravel",
                "minecraft:coal_ore",
                "minecraft:stone[variant=diorite]",
                "minecraft:stone[variant=stone]",
                "minecraft:stone[variant=granite]",
                "minecraft:dirt[snowy=false,variant=dirt]",
                "minecraft:stone[variant=andesite]"
            ]
            # Blocks and their weight used to randomly replace hidden blocks
            Replacements {
                "minecraft:coal_ore"=1.0
                "minecraft:diamond_ore"=1.0
                "minecraft:dirt[snowy=false,variant=dirt]"=1.0
                "minecraft:emerald_ore"=1.0
                "minecraft:gold_ore"=1.0
                "minecraft:gravel"=1.0
                "minecraft:iron_ore"=1.0
                "minecraft:lapis_ore"=1.0
                "minecraft:obsidian"=1.0
                "minecraft:redstone_ore"=1.0
                "minecraft:stone[variant=andesite]"=1.0
                "minecraft:stone[variant=diorite]"=1.0
                "minecraft:stone[variant=granite]"=1.0
                "minecraft:stone[variant=stone]"=7.0
            }
        }
    }
]
Version=1
Yeregorix commented 6 years ago

Sorry, can you repost your issue here: https://github.com/Yeregorix/AntiXray/issues, with some logs if possible ^^ I will look into as soon as I can!