This commit is contained in:
Anuken
2021-01-21 14:45:43 -05:00
parent 3aee9bddd4
commit a73165353f
2 changed files with 12 additions and 3 deletions

View File

@@ -221,12 +221,15 @@ public class PowerNode extends PowerBlock{
@Override @Override
public void drawRequestConfigTop(BuildPlan req, Eachable<BuildPlan> list){ public void drawRequestConfigTop(BuildPlan req, Eachable<BuildPlan> list){
if(req.config instanceof Point2[]){ if(req.config instanceof Point2[] ps){
setupColor(1f); setupColor(1f);
for(Point2 point : (Point2[])req.config){ for(Point2 point : ps){
int px = req.x + point.x, py = req.y + point.y;
otherReq = null; otherReq = null;
list.each(other -> { list.each(other -> {
if((other.x == req.x + point.x && other.y == req.y + point.y) && other != req && other.block != null && other.block.hasPower){ if(other.block != null
&& (px >= other.x - ((other.block.size-1)/2) && py >= other.y - ((other.block.size-1)/2) && px <= other.x + other.block.size/2 && py <= other.y + other.block.size/2)
&& other != req && other.block.hasPower){
otherReq = other; otherReq = other;
} }
}); });

View File

@@ -0,0 +1,6 @@
[This is a truncated changelog, see Github for full notes]
- Fixed negative numbers not displaying properly in power nodes
- Fixed mod minVersion parsing
- Fixed mods disappearing after import [Android]
- Disabled duplicate IP prevention system
- Added mod browser sort order button