Skip to content

Commit 360d5ed

Browse files
[added] error message function
1 parent 41b20f0 commit 360d5ed

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/main/java/com/getitemfromblock/create_tweaked_controllers/CreateTweakedControllers.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,9 @@ public static void log(String message)
9090
{
9191
Create.LOGGER.info(message);
9292
}
93+
94+
public static void error(String message)
95+
{
96+
Create.LOGGER.error(message);
97+
}
9398
}

src/main/java/com/getitemfromblock/create_tweaked_controllers/compat/Controllable/ControllerHandler.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ public void handle(Map<ButtonBinding, Action> actionMap, ActionVisibility arg1)
5555
return;
5656
actionMap.clear();
5757
actionMap.put(ButtonBindings.USE_ITEM, new Action(CreateTweakedControllers.translateDirect("keybind.controller_exit"), Action.Side.LEFT));
58-
CreateTweakedControllers.log("Amogus");
5958
}
6059
};
6160

src/main/java/com/getitemfromblock/create_tweaked_controllers/controller/ControlProfile.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ public void Load(String path)
157157
}
158158
catch (IOException e)
159159
{
160-
CreateTweakedControllers.log("Error loading controller profile \""+path+"\"!");
160+
CreateTweakedControllers.error("Error loading controller profile \""+path+"\"!");
161161
for (StackTraceElement line : e.getStackTrace())
162162
{
163-
CreateTweakedControllers.log(line.toString());
163+
CreateTweakedControllers.error(line.toString());
164164
}
165165
return;
166166
}
@@ -195,10 +195,10 @@ public void Save(String path)
195195
}
196196
catch (IOException e)
197197
{
198-
CreateTweakedControllers.log("Error loading controller profile \""+path+"\"!");
198+
CreateTweakedControllers.error("Error loading controller profile \""+path+"\"!");
199199
for (StackTraceElement line : e.getStackTrace())
200200
{
201-
CreateTweakedControllers.log(line.toString());
201+
CreateTweakedControllers.error(line.toString());
202202
}
203203
return;
204204
}

0 commit comments

Comments
 (0)