Crash fixes
This commit is contained in:
@@ -95,7 +95,7 @@ public class DesktopInput extends InputHandler{
|
||||
if(cursor == null) return;
|
||||
|
||||
//draw selection(s)
|
||||
if(mode == placing){
|
||||
if(mode == placing && recipe != null){
|
||||
NormalizeResult result = PlaceUtils.normalizeArea(selectX, selectY, cursor.x, cursor.y, rotation, true, maxLength);
|
||||
|
||||
for(int i = 0; i <= result.getLength(); i += recipe.result.size){
|
||||
|
||||
@@ -18,7 +18,7 @@ public class NetEvents{
|
||||
throw new ValidateException(player, "Player has sent a message above the text limit.");
|
||||
}
|
||||
|
||||
Log.info("&y{0}: &lb{1}", (player.name == null ? "" : player.name), message);
|
||||
Log.info("&y{0}: &lb{1}", (player == null || player.name == null ? "" : player.name), message);
|
||||
|
||||
if(Vars.ui != null){
|
||||
Vars.ui.chatfrag.addMessage(message, player == null ? null : colorizeName(player.id, player.name));
|
||||
|
||||
Reference in New Issue
Block a user