repo for my hex addons :3
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

how do I send slaps back in time

+4 -8
+1 -1
project/iotaworks/gradle.properties
··· 2 2 yarn_mappings=1.20.1+build.10 3 3 loader_version=0.16.14 4 4 scala_loader_version=0.3.1.11 5 - mod_version=0.1.1 5 + mod_version=0.1.2 6 6 maven_group=org.eu.net.pool 7 7 modid=iotaworks 8 8 archives_base_name=iotaworks
+3 -7
project/iotaworks/src/main/scala/org/eu/net/pool/iotaworks/mixin/HexPatternMixin.java
··· 2 2 3 3 import org.eu.net.pool.iotaworks.HexPatternAccessor; 4 4 5 + import org.spongepowered.asm.mixin.Final; 5 6 import org.spongepowered.asm.mixin.Mixin; 6 7 import org.spongepowered.asm.mixin.Mutable; 7 8 import org.spongepowered.asm.mixin.Shadow; ··· 25 26 public int depth() { return depth; } 26 27 public void depth_$eq(int depth) { this.depth = depth; } 27 28 28 - @Shadow @Mutable public static Codec CODEC = null; // we don't actually use this field, but we need to @Mutable it so the wrapop can use it 29 + @Shadow @Final @Mutable public static Codec CODEC; // we don't actually use this field, but we need to @Mutable it so the wrapop can use it 29 30 30 31 @WrapOperation(method = "<clinit>", at = @At(value = "FIELD", opcode = 179, ordinal = 1)) 31 32 private static void wrapCodec(Codec<HexPattern> codec, Operation<Void> original) { ··· 37 38 ((HexPatternMixin) (Object) p).depth = l; 38 39 return p; 39 40 }) 40 - ), codec).xmap(e -> { 41 - HexPattern value[] = new HexPattern[1]; 42 - e.ifLeft(v -> { value[0] = v; }); 43 - e.ifRight(v -> { value[0] = v; }); 44 - return value[0]; 45 - }, Either::left)); 41 + ), codec).xmap(e -> e.left().or(e::right).get(), Either::left)); 46 42 } 47 43 48 44 @WrapMethod(method = "serializeToNBT")