diff --git a/core/src/mindustry/ui/Fonts.java b/core/src/mindustry/ui/Fonts.java index 3c6c1b175c..295a292c98 100644 --- a/core/src/mindustry/ui/Fonts.java +++ b/core/src/mindustry/ui/Fonts.java @@ -203,7 +203,7 @@ public class Fonts{ /** Merges the UI and font atlas together for better performance. */ public static void mergeFontAtlas(TextureAtlas atlas){ - //grab all textures from the ui page, remove all the regions assigned to it, then copy them over to Fonts.packer and replace the texture in this atlas. + //grab all textures from the ui page, remove all the regions assigned to it, then copy them over to UI.packer and replace the texture in this atlas. //grab old UI texture and regions... Texture texture = atlas.find("logo").texture; diff --git a/core/src/mindustry/ui/fragments/PlayerListFragment.java b/core/src/mindustry/ui/fragments/PlayerListFragment.java index 7be7e6d090..67b101c6ab 100644 --- a/core/src/mindustry/ui/fragments/PlayerListFragment.java +++ b/core/src/mindustry/ui/fragments/PlayerListFragment.java @@ -83,13 +83,15 @@ public class PlayerListFragment extends Fragment{ Groups.player.copy(players); players.sort(Structs.comps(Structs.comparing(Player::team), Structs.comparingBool(p -> !p.admin))); + if(sField.getText().length() > 0){ + players.filter(p -> Strings.stripColors(p.name().toLowerCase()).contains(sField.getText().toLowerCase())); + } for(var user : players){ found = true; NetConnection connection = user.con; if(connection == null && net.server() && !user.isLocal()) return; - if(sField.getText().length() > 0 && !user.name().toLowerCase().contains(sField.getText().toLowerCase()) && !Strings.stripColors(user.name().toLowerCase()).contains(sField.getText().toLowerCase())) return; Table button = new Table(); button.left(); diff --git a/core/src/mindustry/world/blocks/campaign/LaunchPad.java b/core/src/mindustry/world/blocks/campaign/LaunchPad.java index 03dc5e1f8f..0fa14dcce1 100644 --- a/core/src/mindustry/world/blocks/campaign/LaunchPad.java +++ b/core/src/mindustry/world/blocks/campaign/LaunchPad.java @@ -133,8 +133,8 @@ public class LaunchPad extends Block{ public void updateTile(){ if(!state.isCampaign()) return; - //launch when full and base conditions are met - if(items.total() >= itemCapacity && efficiency() >= 1f && (launchCounter += edelta()) >= launchTime){ + //increment launchCounter then launch when full and base conditions are met + if((launchCounter += edelta()) >= launchTime && items.total() >= itemCapacity){ launchSound.at(x, y); LaunchPayload entity = LaunchPayload.create(); items.each((item, amount) -> entity.stacks.add(new ItemStack(item, amount))); diff --git a/core/src/mindustry/world/blocks/payloads/PayloadMassDriver.java b/core/src/mindustry/world/blocks/payloads/PayloadMassDriver.java index 71a1aa1f23..5e04456ac3 100644 --- a/core/src/mindustry/world/blocks/payloads/PayloadMassDriver.java +++ b/core/src/mindustry/world/blocks/payloads/PayloadMassDriver.java @@ -456,6 +456,7 @@ public class PayloadMassDriver extends PayloadBlock{ @Override public Point2 config(){ + if(tile == null) return null; return Point2.unpack(link).sub(tile.x, tile.y); }