fixed nullpointer on open gui with no items
This commit is contained in:
parent
4c6c3f769d
commit
5f17fec300
2 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ public abstract class MuseRenderer {
|
|||
public static List<Point2D> pointsInLine(int num, Point2D a, Point2D b) {
|
||||
List<Point2D> points = new ArrayList<Point2D>();
|
||||
if (num < 1) {
|
||||
return null;
|
||||
return points;
|
||||
} else if (num < 2) {
|
||||
points.add(b.minus(a).times(0.5F).plus(a));
|
||||
} else {
|
||||
|
|
|
@ -36,7 +36,7 @@ import cpw.mods.fml.common.registry.GameRegistry;
|
|||
// Informs forge that this is a base mod class, and gives it some info for the
|
||||
// FML mod list. This is also where it looks to see if your client's version
|
||||
// matches the server's.
|
||||
@Mod(modid = "mmmPowersuits", name = "MachineMuse Modular Powersuits", version = "0.0.2")
|
||||
@Mod(modid = "mmmPowersuits", name = "MachineMuse Modular Powersuits", version = "0.0.3")
|
||||
// Informs forge of the requirements:
|
||||
//
|
||||
// clientSideRequired means players can't connect without it. True for things
|
||||
|
|
Loading…
Reference in a new issue