Crash fixes

This commit is contained in:
Anuken
2018-09-04 09:00:37 -04:00
parent ff37e99d71
commit 063893adee
3 changed files with 3 additions and 3 deletions

View File

@@ -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){