From 5f17fec300eb9da151deb9bc9ec4b288923a093a Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 8 Jan 2013 13:06:04 -0700 Subject: [PATCH] fixed nullpointer on open gui with no items --- .../net/machinemuse/general/geometry/MuseRenderer.java | 2 +- .../net/machinemuse/powersuits/common/PowersuitsMod.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/minecraft/net/machinemuse/general/geometry/MuseRenderer.java b/src/minecraft/net/machinemuse/general/geometry/MuseRenderer.java index b928712..9f2d618 100644 --- a/src/minecraft/net/machinemuse/general/geometry/MuseRenderer.java +++ b/src/minecraft/net/machinemuse/general/geometry/MuseRenderer.java @@ -72,7 +72,7 @@ public abstract class MuseRenderer { public static List pointsInLine(int num, Point2D a, Point2D b) { List points = new ArrayList(); if (num < 1) { - return null; + return points; } else if (num < 2) { points.add(b.minus(a).times(0.5F).plus(a)); } else { diff --git a/src/minecraft/net/machinemuse/powersuits/common/PowersuitsMod.java b/src/minecraft/net/machinemuse/powersuits/common/PowersuitsMod.java index 7ea5f52..9aefbb1 100644 --- a/src/minecraft/net/machinemuse/powersuits/common/PowersuitsMod.java +++ b/src/minecraft/net/machinemuse/powersuits/common/PowersuitsMod.java @@ -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