repo for my hex addons :3
0
fork

Configure Feed

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

hexic: fix void air hitbox

i hate minecraft's codebase.

+5 -10
+1
project/hexic/changelog
··· 14 14 2.0.0 add Hidden Sun's Nadir (blindness) 15 15 2.0.0 add view iotas (experimental!) 16 16 2.0.0 fix getting kicked if mediaweave sends an overly long message 17 + 2.0.0 fix hitbox for void blocks 17 18 2.0.0 load config from config/*.properties instead of config/jvm.properties 18 19 2.0.0 made demiplanes not instantly kill you and void your items if you look at them wrong 19 20 2.0.0 made demiplanes remember where they were entered from
+4 -10
project/hexic/src/main/scala/org/eu/net/pool/hexic/mixin/EntityMixin.java
··· 27 27 28 28 @Mixin(Entity.class) 29 29 public abstract class EntityMixin { 30 - @Unique BlockPos.Mutable hexic$scanPos = new BlockPos.Mutable(); 31 - 32 30 @Shadow public abstract World getWorld(); 33 31 @Shadow public abstract Box getBoundingBox(); 34 32 @Shadow private World world; ··· 59 57 return; 60 58 } 61 59 } 62 - CuboidBlockIterator iter = new CuboidBlockIterator(MathHelper.ceil(box.minX), MathHelper.ceil(box.minY), MathHelper.ceil(box.minZ), MathHelper.ceil(box.maxX), MathHelper.ceil(box.maxY), MathHelper.ceil(box.maxZ)); 63 - while (iter.step()) { 64 - hexic$scanPos.set(iter.getX(), iter.getY(), iter.getZ()); 65 - if (world.getBlockState(hexic$scanPos).isOf(VOID_AIR)) { 66 - tickInVoid(); 67 - ci.cancel(); 68 - return; 69 - } 60 + if (BlockPos.stream(box).anyMatch(p -> world.getBlockState(p).isOf(VOID_AIR))) { 61 + tickInVoid(); 62 + ci.cancel(); 63 + return; 70 64 } 71 65 } 72 66