Skip to content

Commit

Permalink
Merge branch 'pr/12'
Browse files Browse the repository at this point in the history
  • Loading branch information
sschr15 committed Dec 22, 2019
2 parents a5cec3c + 871757b commit 72d4c66
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"1.4.5": "Update the contained library",
"1.4.6": "- Disabled candyfloss ore recipe when candyworld is not installed, fixes loading crash with Immersive Engineering\n- Gas loading errors are now more descriptive and don't crash. Check your logs if you make custom gases !",
"1.4.7": "- Fixed a startup crash on dedicated servers",
"1.4.8": "- Edited the HREF for item skins\n- Added the ability to change the length gas clouds exist through configuration"
"1.4.8": "- Edited the HREF for item skins\n- Added the ability to change the length gas clouds exist through configuration\n- Also added the ability to change the distance the gas can travel"
}
}
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
##### Version 1.12.2-1.4.8 - BUILT
- Edited the HREF for item skins
- Added the ability to change the length gas clouds exist through configuration
- Also added the ability to change the distance the gas can travel

##### Version 1.12.2-1.4.7 - BUILT
- Fixed a startup crash on dedicated servers
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/ladysnake/gaspunk/GasPunkConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ public class GasPunkConfig {
@Config.Comment("Makes ash require smelting nether wart instead of rotten flesh")
public static boolean alternativeAshRecipe = false;

@Config.Comment(
"Sets the lifespan in ticks for gas clouds. The clouds themselves look like they take a bit longer to decay, but the effects no longer happen after this amount."
)
public static int gasLifespan = 600;

@Config.Comment(
"Default distance that the gas cloud travels. The value appears to be an estimate for the radius in meters. I am not the original developer, so I'm not completely sure."
)
public static int maxPropagationDistance = 10;

@Config.Comment({
"Sets the lifespan in ticks for gas clouds.",
"The clouds themselves look like they take a bit longer to decay,",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@
import ladysnake.gaspunk.client.model.ModelBandoulier;
import ladysnake.gaspunk.init.ModItems;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.entity.RenderLivingBase;
import net.minecraft.client.renderer.entity.layers.LayerArmorBase;
import net.minecraft.client.renderer.entity.layers.LayerRenderer;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/ladysnake/gaspunk/entity/EntityGasCloud.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@

public class EntityGasCloud extends Entity implements IEntityAdditionalSpawnData {

public static final int MAX_PROPAGATION_DISTANCE = 10;
static int maxPropDistance = GasPunkConfig.maxPropagationDistance;
public static final int MAX_PROPAGATION_DISTANCE = maxPropDistance;
public static final int MAX_PROPAGATION_DISTANCE_SQ = MAX_PROPAGATION_DISTANCE * MAX_PROPAGATION_DISTANCE;
private static final DataParameter<Integer> CLOUD_AGE = EntityDataManager.createKey(EntityGasCloud.class, DataSerializers.VARINT);
private static final DataParameter<Integer> MAX_LIFESPAN = EntityDataManager.createKey(EntityGasCloud.class, DataSerializers.VARINT);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package ladysnake.gaspunk.network;

import ladysnake.gaspunk.util.SpecialRewardChecker;
import net.minecraftforge.fml.common.FMLCommonHandler;
import net.minecraftforge.fml.common.network.simpleimpl.IMessage;
import net.minecraftforge.fml.common.network.simpleimpl.IMessageHandler;
import net.minecraftforge.fml.common.network.simpleimpl.MessageContext;
Expand Down

0 comments on commit 72d4c66

Please sign in to comment.