mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-07 00:08:20 +01:00
Redstone repeaters are considered half-blocks now.
This commit is contained in:
parent
768a9fb9a1
commit
b3ebec3580
@ -1,12 +1,10 @@
|
|||||||
package cc.co.evenprime.bukkit.nocheat.checks;
|
package cc.co.evenprime.bukkit.nocheat.checks;
|
||||||
|
|
||||||
import net.minecraft.server.Block;
|
import net.minecraft.server.Block;
|
||||||
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
|
|
||||||
import cc.co.evenprime.bukkit.nocheat.NoCheatPlayer;
|
import cc.co.evenprime.bukkit.nocheat.NoCheatPlayer;
|
||||||
import cc.co.evenprime.bukkit.nocheat.data.PreciseLocation;
|
import cc.co.evenprime.bukkit.nocheat.data.PreciseLocation;
|
||||||
|
|
||||||
@ -142,6 +140,10 @@ public class CheckUtil {
|
|||||||
types[Material.IRON_DOOR_BLOCK.getId()] = SOLID | NONSOLID;
|
types[Material.IRON_DOOR_BLOCK.getId()] = SOLID | NONSOLID;
|
||||||
types[Material.TRAP_DOOR.getId()] = SOLID | NONSOLID;
|
types[Material.TRAP_DOOR.getId()] = SOLID | NONSOLID;
|
||||||
|
|
||||||
|
// repeaters are technically half blocks
|
||||||
|
types[Material.DIODE_BLOCK_OFF.getId()] = SOLID | NONSOLID;
|
||||||
|
types[Material.DIODE_BLOCK_ON.getId()] = SOLID | NONSOLID;
|
||||||
|
|
||||||
// pressure plates are so slim, you can consider them
|
// pressure plates are so slim, you can consider them
|
||||||
// nonsolid too
|
// nonsolid too
|
||||||
types[Material.STONE_PLATE.getId()] = SOLID | NONSOLID;
|
types[Material.STONE_PLATE.getId()] = SOLID | NONSOLID;
|
||||||
|
Loading…
Reference in New Issue
Block a user