Skip to content

Commit

Permalink
Fixed Bugs and version 1.3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Arrokoth486958 committed Dec 22, 2022
1 parent a6f714d commit 9d6f87f
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 21 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ apply plugin: 'net.minecraftforge.gradle.forge'
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.


version = "1.3.1"
version = "1.3.12"
group = "mod.sol" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "sol"

Expand Down
1 change: 0 additions & 1 deletion src/main/java/mod/sol/blocks/BlockBossSpawnerMercury.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public void registerModels()
}

@Override
@javax.annotation.Nullable
public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, IBlockAccess worldIn, BlockPos pos) {
return NULL_AABB;
}
Expand Down
1 change: 0 additions & 1 deletion src/main/java/mod/sol/blocks/BlockBossSpawnerNeptune.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public void registerModels()
}

@Override
@javax.annotation.Nullable
public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, IBlockAccess worldIn, BlockPos pos) {
return NULL_AABB;
}
Expand Down
1 change: 0 additions & 1 deletion src/main/java/mod/sol/blocks/BlockBossSpawnerPluto.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public void registerModels()
}

@Override
@javax.annotation.Nullable
public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, IBlockAccess worldIn, BlockPos pos) {
return NULL_AABB;
}
Expand Down
1 change: 0 additions & 1 deletion src/main/java/mod/sol/blocks/BlockBossSpawnerSaturn.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ public void registerModels()
}

@Override
@javax.annotation.Nullable
public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, IBlockAccess worldIn, BlockPos pos) {
return NULL_AABB;
}
Expand Down
1 change: 0 additions & 1 deletion src/main/java/mod/sol/blocks/BlockBossSpawnerSedna.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public void registerModels()
}

@Override
@javax.annotation.Nullable
public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, IBlockAccess worldIn, BlockPos pos) {
return NULL_AABB;
}
Expand Down
1 change: 0 additions & 1 deletion src/main/java/mod/sol/blocks/BlockBossSpawnerUranus.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public void registerModels()
}

@Override
@javax.annotation.Nullable
public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, IBlockAccess worldIn, BlockPos pos) {
return NULL_AABB;
}
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/mod/sol/util/handler/RegistryHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

@EventBusSubscriber
public class RegistryHandler
Expand All @@ -38,7 +36,7 @@ public static void onBlockRegister(RegistryEvent.Register<Block> event)
}

@SubscribeEvent
@SideOnly(Side.CLIENT)
// @SideOnly(Side.CLIENT)
public static void onBlockMeshRegister(RegistryEvent.Register<Block> event)
{
RenderHandler.registerCustomMeshesAndStates();
Expand Down
8 changes: 1 addition & 7 deletions src/main/java/mod/sol/util/handler/RenderHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@

public class RenderHandler {
public static void registerCustomMeshesAndStates() {
ModelLoader.setCustomMeshDefinition(Item.getItemFromBlock(SolBlocks.METHANE_FLUID_BLOCK), new ItemMeshDefinition() {

@Override
public ModelResourceLocation getModelLocation(ItemStack stack) {
return new ModelResourceLocation("sol:liquid_methane", "fluid");
}
});
ModelLoader.setCustomMeshDefinition(Item.getItemFromBlock(SolBlocks.METHANE_FLUID_BLOCK), stack -> new ModelResourceLocation("sol:liquid_methane", "fluid"));

ModelLoader.setCustomStateMapper(SolBlocks.METHANE_FLUID_BLOCK, new StateMapperBase() {

Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/mcmod.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
{
"modid": "sol",
"name": "The Sol",
"description": "This mod is a Galacticraft Addon, which added a lot of celestialbodies for Galacticraft Solar system",
"version": "1.3.0",
"description": "This mod is a Galacticraft Addon, which added a lot of celestialbodies for Galacticraft Solar system\n©2021-2023 Arrokoth486958/Arrokoth233\nRepublishing without permission is prohibited.\nThis Mod ONLY publish on MCMOD百科(mcmod.cn), Github(github.com) and Curseforge(curseforge.com)",
"version": "1.3.12",
"mcversion": "1.12.2",
"url": "",
"updateUrl": "",
"authorList": ["Arrokoth_486958"],
"authorList": ["Arrokoth486958/Arrokoth233"],
"credits": "Thanks a loooooot of guys who give me help",
"logoFile": "",
"screenshots": [],
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/pack.mcmeta
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"pack": {
"description": "The Sol",
"pack_format": 3,
"_comment": "A pack_format of 3 should be used starting with Minecraft 1.11. All resources, including language files, should be lowercase (eg: en_us.lang). A pack_format of 2 will load your mod resources with LegacyV2Adapter, which requires language files to have uppercase letters (eg: en_US.lang)."
"_comment": "©2021-2023 Arrokoth486958/Arrokoth233\nRepublishing without permission is prohibited.\nThis Mod ONLY publish on MCMOD百科(mcmod.cn), Github(github.com) and Curseforge(curseforge.com)"
}
}

0 comments on commit 9d6f87f

Please sign in to comment.