Option<>
s is better. it gives you a panic when you try to use the thing and it's not there, instead of silently continuingNETMSG_SNAP
, NETMSG_SNAPSINGLE
, NETMSG_SNAPEMPTY
(((!(tw7.msg == "sys.input")) && !(tw7.msg == "sys.snap_single")) && !(tw7.msg == "sys.input_timing")) && !(tw7.msg == "sys.snap_empty")
IDemoRecorder::Stop
function to control whether the demo file is removed or renamed when stopping the recording.
Ensure demo files of the replay recorder are always removed (except on crashes). The temporary replay demos were previously not removed when being disconnected from a server.
Fix auto demos being stopped and restarted when enabling replays in the settings menu. Now only the replay recorder is stopped/st...CHttpRequest::OnCompletion
function has finished before updating the state which is visible to other threads. Otherwise, threads may try to access the result of a completed HTTP request, before the result has been initialized/updated in the OnCompletion
function.
Fixes warning due to invalid texture width/height being shown for downloaded skins, because the texture was loaded before the image data was initialized. Closes #7818.
Regression from #7683. Before this, the...if(SnapingCLient == 0)
return;
and the snapshot will not created for just client 0javac -d bin src/*.java && java -cp bin MainMenu
it works for my friend but not for me PS C:\Users\blaiz\Projects\SnakeGame> javac -d bin src/*.java
PS C:\Users\blaiz\Projects\SnakeGame> java -cp bin MainMenu
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "java.net.URL.toExternalForm()" because "location" is null
at java.desktop/javax.swing.ImageIcon.<init>(ImageIcon.java:232)
at MainMenuPanel.<init>(MainMenuPanel.java:107)
at MainMenu.<init>(MainMenu.java:38)
at MainMenu.lambda$main$0(MainMenu.java:61)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Exception in thread "Thread-0" java.lang.NullPointerException: Cannot invoke "javax.sound.sampled.Clip.stop()" because "<local2>" is null
at GamePanel.lambda$music$0(GamePanel.java:138)
at java.base/java.lang.Thread.run(Thread.java:1583)
(edited)javac -d bin src/*.java && mkdir bin/assets && cp -r ./assets/* ./bin/assets && java -cp bin MainMenu
now you can play snake xd