-Upped the forge and mappings versions in build.gradle
-Restructured Mod Name and Dependencies strings in DimDoors.java

-Instead of returning a null bounding box in
BlockDimensionalDoorTransient#getBoundingBox, for now, return an empty
bounding box.
This commit is contained in:
Robijnvogel 2018-01-13 17:17:45 +01:00
parent 2bbe9019fb
commit dde38384fa
3 changed files with 7 additions and 6 deletions

View file

@ -24,8 +24,8 @@ repositories {
String baseversion = "3.0.0" // Set beta to 0 after changing this
int beta = 4 // Set this to 0 for a non-beta release
ext.mcversion = "1.12.2"
ext.forgeversion = "14.23.1.2555"
String mcpversion = "snapshot_20171007"
ext.forgeversion = "14.23.1.2589"
String mcpversion = "snapshot_20180113"
String suffix = ""
String shortSuffix = ""

View file

@ -19,13 +19,13 @@ import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import org.apache.logging.log4j.Logger;
@Mod(modid = DimDoors.MODID, name = "Dimensional Doors",
version = DimDoors.VERSION,
dependencies = "required-after:forge@[14.23.0.2517,)") // TODO
@Mod(modid = DimDoors.MODID, name = DimDoors.MODNAME, version = DimDoors.VERSION, dependencies = DimDoors.DEPENDENCIES)
public class DimDoors {
public static final String MODID = "dimdoors";
public static final String MODNAME = "Dimensional Doors";
public static final String VERSION = "${version}";
public static final String DEPENDENCIES = "required-after:forge@[14.23.0.2517,)"; //TODO make the forge version here change depending on a field in build.gradle
@Mod.Instance(DimDoors.MODID)
public static DimDoors instance;

View file

@ -34,7 +34,8 @@ public class BlockDimensionalDoorTransient extends BlockDimensionalDoor { // TOD
@Override
public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) {
return null;
return new AxisAlignedBB(0,0,0,0,0,0); //patches entities trying to pathfind through this block, however makes them spin like crazy if they end up in this block.
//NULL_AABB, the same as BlockAir, or straight up null seem to crash the server.
}
@Override