OK, so I remove an orange from the array list, break it, but I still get the outbound I am a little confused, someone can help me, I have tried to separate the problem, but I still can not understand it. Here is an error: Exception threads "Thread-2" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 on java.util.ArrayList.rangeCheck ( GameFunctions.act at GameFunctions.act on (ArrayList.java:635) at java.util.ArrayList.get (ArrayList.java:411) GameFunctions.act (GameFunctions.java147) GamePanel $ 1.run (GamePanel.java:50) Here are two methods (if (Actor equivalents ("germ")) {for (int i = 0; i & lt; g.size (); i ++) {if (live .t.T. Examples of Spinumonia) {g.get (i) .move (); G.get (i) .testBounds (); If (Czechs (G, I)) {System.out.println ("broken"); break; }}}} And if (Actor equal ("whiteboard seals")) {for (int i = 0; i & lt; p.size (); i ++) {pgate (i) .setTarget ( Closest goal (G, P. Mill (i))); P.get (i) .move (); }...
Well, I'm using Reactive Extension Event Handler to handle my app events, I run the headlines on the Yuri thread. I also use ControlSubular for However, recently I am getting cross thread exception despite using control scheduler and I do not know what the problem is. Code: Observable.FromEventPattern & Lt; String & gt; (CC, "UiAlertMessage", New Control Session ()) Subscribe (_ = & gt; {Alert Control. (Show this language, title, _.EventArgs.UppercaseFirst ());}); The new control scheduler (this) is not to run the code on the UI control thread, so I do not get cross threading exceptions? you should do Observable.FromEventPattern & lt; String & gt; (CC, "UiAlertMessage"). AboveOption (this). Subscribe (_ = & gt; {Alert Control. (Show this language, Titles, _.EventArgs.UppercaseFirst ());}); This is the standard way of sending a scheduler related to specific controls. Passing control scheduler as you have got subsc...
I would like to add color code support in my config.yml . How do I add translateAlternateColorCode to my code correctly? Public boolean on command (CommandSender sender, command CMD, string label, string [] args) {player player = (player) sender; If (cmd.getName () .all ignored cas ("member") {player.sendMessage (getConfig (). GetString ("member text")); } You can simply use translateAltranateColorCodes . Here's an example: string nonColoredText = getConfig (). GetString ("member text"); // "member text" string get colored text = raw string. Translate Altinetic Color Code ('& amp;', nonColoredText); // Edit the colors code Any of the above text which is & amp; starts with the correct color code, for example, if & amp; A was in config, it would convert it to green color or ChatColor.GREEN , which will show the message in green, it also works with other characters such as you color If you want to use...
Comments
Post a Comment