Fixed crash when right-clicking in mid-air in build mode Normal+.
This commit is contained in:
@@ -39,7 +39,7 @@ public class EffortlessBuilding
|
||||
{
|
||||
public static final String MODID = "effortlessbuilding";
|
||||
public static final String NAME = "Effortless Building";
|
||||
public static final String VERSION = "1.12.2-2.0";
|
||||
public static final String VERSION = "1.12.2-2.1";
|
||||
|
||||
@Mod.Instance(EffortlessBuilding.MODID)
|
||||
public static EffortlessBuilding instance;
|
||||
|
||||
@@ -17,14 +17,14 @@ public class Normal implements IBuildMode {
|
||||
@Override
|
||||
public List<BlockPos> onRightClick(EntityPlayer player, BlockPos blockPos, EnumFacing sideHit, Vec3d hitVec, boolean skipRaytrace) {
|
||||
List<BlockPos> list = new ArrayList<>();
|
||||
list.add(blockPos);
|
||||
if (blockPos != null) list.add(blockPos);
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<BlockPos> findCoordinates(EntityPlayer player, BlockPos blockPos, boolean skipRaytrace) {
|
||||
List<BlockPos> list = new ArrayList<>();
|
||||
list.add(blockPos);
|
||||
if (blockPos != null) list.add(blockPos);
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
@@ -17,14 +17,14 @@ public class NormalPlus implements IBuildMode {
|
||||
@Override
|
||||
public List<BlockPos> onRightClick(EntityPlayer player, BlockPos blockPos, EnumFacing sideHit, Vec3d hitVec, boolean skipRaytrace) {
|
||||
List<BlockPos> list = new ArrayList<>();
|
||||
list.add(blockPos);
|
||||
if (blockPos != null) list.add(blockPos);
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<BlockPos> findCoordinates(EntityPlayer player, BlockPos blockPos, boolean skipRaytrace) {
|
||||
List<BlockPos> list = new ArrayList<>();
|
||||
list.add(blockPos);
|
||||
if (blockPos != null) list.add(blockPos);
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user