simple-tech

Minecraft: Better than Adventure! mod that adds simple blocks to automate tasks
git clone git://memoryshards.xyz/simple-tech.git
Log | Files | Refs | README | LICENSE

commit d5f8e8668eee26ed0d93883d57629713373804c7
parent 63b4c3de1cd1b9327438ecec52faf0f092a2f9f9
Author: Amb0s <ambos@disroot.org>
Date:   Wed, 30 Aug 2023 21:31:08 +0200

Removed bit getter and setter comments

Diffstat:
Msrc/main/java/turniplabs/simpletech/SimpleTech.java | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git a/src/main/java/turniplabs/simpletech/SimpleTech.java b/src/main/java/turniplabs/simpletech/SimpleTech.java @@ -114,15 +114,11 @@ public class SimpleTech implements ModInitializer { } public static int setBit(int number, int position, int bit) { - // Sets a bit at position p in n to b. - // Returns modified n. - // https://www.geeksforgeeks.org/modify-bit-given-position/ int mask = 1 << position; return (number & ~mask) | ((bit << position) & mask); } public static int getBit(int number, int offset) { - // https://stackoverflow.com/questions/9354860/how-to-get-the-value-of-a-bit-at-a-certain-position-from-a-byte return (number >> offset) & 1; }