mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-13 14:49:03 +00:00
Bug fixes related to floppy drive
This commit is contained in:
@@ -108,8 +108,14 @@ public class GameServer implements Runnable {
|
||||
for (User user : users_) {
|
||||
|
||||
if(user.getCpu() != null){
|
||||
user.getCpu().reset();
|
||||
user.getCpu().execute();
|
||||
try {
|
||||
user.getCpu().reset();
|
||||
user.getCpu().execute();
|
||||
} catch (Exception e) {
|
||||
LogManager.LOGGER.severe("Error executing " + user.getUsername() + "'s code");
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ public class Memory implements Target, JSONSerialisable {
|
||||
offset = (char)offset * 2;
|
||||
|
||||
|
||||
if (offset + count > this.bytes.length || count < 0 || offset < 0) {
|
||||
if (offset + count > this.bytes.length || count < 0 || offset < 0 || srcOffset >= bytes.length) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user