Skip to content

Commit

Permalink
Fixed #2
Browse files Browse the repository at this point in the history
  • Loading branch information
dries007 committed Dec 21, 2014
1 parent 0e378a7 commit bef3def
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/net/doubledoordev/mtrm/network/MessageSend.java
Expand Up @@ -105,8 +105,8 @@ private MessageResponse makeScript()
{
if (data[i] != null)
{
int row = (i - 1) % 3;
int col = (i - 1) / 3;
int row = (i - 1) / 3;
int col = (i - 1) % 3;
noIngredients = false;
rowsNull[row] = false;
colsNull[col] = false;
Expand All @@ -133,7 +133,7 @@ private MessageResponse makeScript()
File file;
do
{
file = new File("scripts", name + nameId++ + ".zs");
file = new File("scripts", name + '_' + nameId++ + ".zs");
}
while (file.exists());
if (!file.getParentFile().exists()) file.getParentFile().mkdir();
Expand Down

0 comments on commit bef3def

Please sign in to comment.