Compare commits

...
5 Commits
Author SHA1 Message Date
Martin Robertz 272d0a482c update 2024-05-20 12:34:00 +02:00
Martin Robertz 957d6d8479 ckdate gt version 2024-05-20 12:24:43 +02:00
Caedis 651b34d8de Removed ModelWings Allocations (#77)
* Removed ModelWings Allocations

* init on first call

* Fix wings and speical armor

* spotless

(cherry picked from commit 6fea13084d)
2024-05-20 12:24:11 +02:00
Alastors 0f2b04bdca Update ItemElectricBootsTraveller.java
(cherry picked from commit 5074d8ba1d)
2024-05-20 12:24:07 +02:00
Drathonix d7568a2d8f Allow changing Electric Boots using ThaumicBoots Keybinds. (#75)
* Allow changing Traveler Boots speed using ThaumicBoots Keybinds.

* Air speed bonus gets modified by speedModifier

* Spotless Apply :/

* Added the temp lib file for tests

This should instead use the remote dependency system once TB PR 27 is merged

* Fix potential NSM exception when GTNH Thaumic Boots is not present.

* Spotless apply.

* Now using ThaumicBoots 1.2.2-Pre build

* Delete ThaumicBoots-1.2.1-master+4e33b9941e-dirty-dev.jar

* Fixed DuplicateMod, Excluded EMT from the ThaumicBoots pre jar

* Fixing the EMT Issues + Updating the way the Electric Boots Work

* Update dependencies.gradle

* update

---------

Co-authored-by: Alastors <[email protected]>
Co-authored-by: Martin Robertz <[email protected]>
(cherry picked from commit 74d1aced60)
2024-05-20 12:24:01 +02:00
11 changed files with 155 additions and 78 deletions

No files matched your search

+5 -1
View File
@@ -1,9 +1,13 @@
// Add your dependencies here // Add your dependencies here
dependencies { dependencies {
compileOnly 'com.github.GTNewHorizons:GT5-Unofficial:5.09.45.130:dev' compileOnly 'com.github.GTNewHorizons:GT5-Unofficial:5.09.45.166:dev'
api 'com.github.GTNewHorizons:Baubles:1.0.4:dev' api 'com.github.GTNewHorizons:Baubles:1.0.4:dev'
api 'com.github.GTNewHorizons:ModularUI:1.1.42:dev' api 'com.github.GTNewHorizons:ModularUI:1.1.42:dev'
api ('com.github.GTNewHorizons:ThaumicBoots:1.2.3:dev'){
exclude group: 'com.github.GTNewHorizons', module: 'Electro-Magic-Tools'
}
api 'net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev' api 'net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev'
api 'thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev' api 'thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev'
+1 -1
View File
@@ -117,7 +117,7 @@ minimizeShadowedDependencies = true
# If disabled, won't rename the shadowed classes. # If disabled, won't rename the shadowed classes.
relocateShadowedDependencies = true relocateShadowedDependencies = true
# Adds the GTNH maven, CurseMaven, IC2/Player maven, and some more well-known 1.7.10 repositories. # Adds the GTNH maven, CurseMaven, Modrinth, and some more well-known 1.7.10 repositories.
includeWellKnownRepositories = true includeWellKnownRepositories = true
# Change these to your Maven coordinates if you want to publish to a custom Maven repository instead of the default GTNH Maven. # Change these to your Maven coordinates if you want to publish to a custom Maven repository instead of the default GTNH Maven.
Binary file not shown.
+1 -1
View File
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000 networkTimeout=10000
validateDistributionUrl=true validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
+1 -1
View File
@@ -17,7 +17,7 @@ pluginManagement {
} }
plugins { plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.19' id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.22'
} }
+7
View File
@@ -7,6 +7,7 @@ import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLInitializationEvent;
@@ -65,12 +66,18 @@ public class EMT {
@Mod.Instance("EMT") @Mod.Instance("EMT")
public static EMT instance; public static EMT instance;
public static boolean isBootsActive = false;
public static final String BOOTS = "thaumicboots";
public boolean isSimulating() { public boolean isSimulating() {
return !FMLCommonHandler.instance().getEffectiveSide().isClient(); return !FMLCommonHandler.instance().getEffectiveSide().isClient();
} }
@Mod.EventHandler @Mod.EventHandler
public void preInit(FMLPreInitializationEvent event) { public void preInit(FMLPreInitializationEvent event) {
if (Loader.isModLoaded(BOOTS)) {
isBootsActive = true;
}
EMTConfigHandler.init(event.getSuggestedConfigurationFile()); EMTConfigHandler.init(event.getSuggestedConfigurationFile());
FMLCommonHandler.instance().bus().register(new EMTEventHandler()); FMLCommonHandler.instance().bus().register(new EMTEventHandler());
if (FMLCommonHandler.instance().getSide().isClient()) { if (FMLCommonHandler.instance().getSide().isClient()) {
@@ -12,6 +12,8 @@ import cpw.mods.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
public class ModelSpecialArmor extends ModelBiped { public class ModelSpecialArmor extends ModelBiped {
private static ModelSpecialArmor instance;
public ModelRenderer rightWing; public ModelRenderer rightWing;
public ModelRenderer leftWing; public ModelRenderer leftWing;
public ModelRenderer center; public ModelRenderer center;
@@ -30,41 +32,43 @@ public class ModelSpecialArmor extends ModelBiped {
public ModelSpecialArmor(float scale, float offset, int type) { public ModelSpecialArmor(float scale, float offset, int type) {
super(scale, offset, type == 1 ? 128 : 64, type == 0 ? 32 : type == 1 ? 96 : 64); super(scale, offset, type == 1 ? 128 : 64, type == 0 ? 32 : type == 1 ? 96 : 64);
this.type = type; this.type = type;
switch (this.type) {
case 1:
this.textureWidth = 128;
this.textureHeight = 96;
this.jetpack = new ModelRenderer(this, 16, 69);
this.jetpack.setTextureSize(64, 48);
this.jetpack.addBox(-4.0F, -12.0F, -2.0F, 8, 12 * 2, 4, scale * 2);
this.jetpack.setRotationPoint(0.0F, 0.0F + offset, 0.0F);
break;
case 2: this.textureWidth = 128;
this.textureWidth = 64; this.textureHeight = 96;
this.textureHeight = 64; this.jetpack = new ModelRenderer(this, 16, 69);
rightWing = new ModelRenderer(this, 24, 0 + 32); this.jetpack.setTextureSize(64, 48);
rightWing.addBox(-11F, -1F, 0F, 11, 13, 1); this.jetpack.addBox(-4.0F, -12.0F, -2.0F, 8, 12 * 2, 4, scale * 2);
rightWing.setRotationPoint(-2F, 0F, 3F); this.jetpack.setRotationPoint(0.0F, 0.0F + offset, 0.0F);
rightWing.setTextureSize(64, 32);
rightWing.mirror = false;
setRotation(rightWing, 0F, 0.1570796F, 0F);
leftWing = new ModelRenderer(this, 0, 0 + 32); this.textureWidth = 64;
leftWing.addBox(0F, -1F, 0F, 11, 13, 1); this.textureHeight = 64;
leftWing.setRotationPoint(2F, 0F, 3F); rightWing = new ModelRenderer(this, 24, 0 + 32);
leftWing.setTextureSize(64, 32); rightWing.addBox(-11F, -1F, 0F, 11, 13, 1);
leftWing.mirror = true; rightWing.setRotationPoint(-2F, 0F, 3F);
setRotation(leftWing, 0F, -0.1570796F, 0F); rightWing.setTextureSize(64, 32);
rightWing.mirror = false;
setRotation(rightWing, 0F, 0.1570796F, 0F);
center = new ModelRenderer(this, 0, 14 + 32); leftWing = new ModelRenderer(this, 0, 0 + 32);
center.addBox(0F, 0F, 1F, 8, 14, 1); leftWing.addBox(0F, -1F, 0F, 11, 13, 1);
center.setRotationPoint(-4F, 0F, 3F); leftWing.setRotationPoint(2F, 0F, 3F);
center.setTextureSize(64, 32); leftWing.setTextureSize(64, 32);
center.mirror = true; leftWing.mirror = true;
setRotation(center, 0F, 0F, 0F); setRotation(leftWing, 0F, -0.1570796F, 0F);
break;
} center = new ModelRenderer(this, 0, 14 + 32);
center.addBox(0F, 0F, 1F, 8, 14, 1);
center.setRotationPoint(-4F, 0F, 3F);
center.setTextureSize(64, 32);
center.mirror = true;
setRotation(center, 0F, 0F, 0F);
}
public static ModelSpecialArmor getInstance() {
if (instance == null) instance = new ModelSpecialArmor();
return instance;
} }
private void setRotation(ModelRenderer model, float x, float y, float z) { private void setRotation(ModelRenderer model, float x, float y, float z) {
@@ -96,6 +100,7 @@ public class ModelSpecialArmor extends ModelBiped {
this.center.render(scale); this.center.render(scale);
this.leftWing.render(scale); this.leftWing.render(scale);
this.rightWing.render(scale); this.rightWing.render(scale);
break;
} }
} }
@@ -105,6 +110,9 @@ public class ModelSpecialArmor extends ModelBiped {
if (this.isJumping) { if (this.isJumping) {
this.rightWing.rotateAngleY = 0.5f; this.rightWing.rotateAngleY = 0.5f;
this.leftWing.rotateAngleY = -0.5f; this.leftWing.rotateAngleY = -0.5f;
} else {
this.rightWing.rotateAngleY = 0.1570796F;
this.leftWing.rotateAngleY = -0.1570796F;
} }
if (this.isSneak) { if (this.isSneak) {
@@ -113,14 +121,22 @@ public class ModelSpecialArmor extends ModelBiped {
this.jetpack.rotateAngleX = 0.5F; this.jetpack.rotateAngleX = 0.5F;
break; break;
case 2: case 2:
this.center.offsetY -= 0.1;
this.rightWing.offsetY -= 0.1;
this.leftWing.offsetY -= 0.1;
this.center.rotateAngleX = 0.5F; this.center.rotateAngleX = 0.5F;
this.rightWing.rotateAngleX = 0.5F; this.rightWing.rotateAngleX = 0.5F;
this.leftWing.rotateAngleX = 0.5F; this.leftWing.rotateAngleX = 0.5F;
break; break;
} }
} else {
switch (this.type) {
case 1:
this.jetpack.rotateAngleX = 0F;
break;
case 2:
this.center.rotateAngleX = 0F;
this.rightWing.rotateAngleX = 0F;
this.leftWing.rotateAngleX = 0F;
break;
}
} }
} }
} }
+21 -4
View File
@@ -4,8 +4,14 @@ import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.model.ModelRenderer; import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity; import net.minecraft.entity.Entity;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class ModelWings extends ModelBiped { public class ModelWings extends ModelBiped {
@SideOnly(Side.CLIENT)
private static ModelWings instance = null;
public boolean isJumping = false; public boolean isJumping = false;
ModelRenderer rightWing; ModelRenderer rightWing;
ModelRenderer leftWing; ModelRenderer leftWing;
@@ -41,6 +47,12 @@ public class ModelWings extends ModelBiped {
this.bipedBody.addChild(center); this.bipedBody.addChild(center);
} }
public static ModelWings getInstance() {
if (instance == null) instance = new ModelWings();
return instance;
}
@Override @Override
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
this.setRotationAngles(f, f1, f2, f3, f4, f5, entity); this.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
@@ -55,20 +67,25 @@ public class ModelWings extends ModelBiped {
model.rotateAngleZ = z; model.rotateAngleZ = z;
} }
public void setRotationAngles(float f, float f1, float pt, float f3, float f4, float f5, Entity entity) { public void setRotationAngles(float limbSwing, float limbSwingAmount, float playerTicksExisted,
float playerRotationYawHead, float playerRotationPitch, float f5, Entity entity) {
if (isJumping) { if (isJumping) {
this.rightWing.rotateAngleY = 0.5f; this.rightWing.rotateAngleY = 0.5f;
this.leftWing.rotateAngleY = -0.5f; this.leftWing.rotateAngleY = -0.5f;
} else {
this.rightWing.rotateAngleY = 0.1570796F;
this.leftWing.rotateAngleY = -0.1570796F;
} }
if (entity.isSneaking()) { if (entity.isSneaking()) {
this.center.offsetY -= 0.1;
this.rightWing.offsetY -= 0.1;
this.leftWing.offsetY -= 0.1;
this.center.rotateAngleX = 0.5F; this.center.rotateAngleX = 0.5F;
this.rightWing.rotateAngleX = 0.5F; this.rightWing.rotateAngleX = 0.5F;
this.leftWing.rotateAngleX = 0.5F; this.leftWing.rotateAngleX = 0.5F;
} else {
this.center.rotateAngleX = 0.0F;
this.rightWing.rotateAngleX = 0;
this.leftWing.rotateAngleX = 0;
} }
} }
} }
@@ -18,6 +18,8 @@ import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.entity.living.LivingEvent; import net.minecraftforge.event.entity.living.LivingEvent;
import net.minecraftforge.event.entity.living.LivingFallEvent; import net.minecraftforge.event.entity.living.LivingFallEvent;
import cpw.mods.fml.common.Optional;
import cpw.mods.fml.common.Optional.Interface;
import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly; import cpw.mods.fml.relauncher.SideOnly;
@@ -33,9 +35,11 @@ import thaumcraft.api.IVisDiscountGear;
import thaumcraft.api.aspects.Aspect; import thaumcraft.api.aspects.Aspect;
import thaumcraft.common.Thaumcraft; import thaumcraft.common.Thaumcraft;
import thaumcraft.common.items.armor.Hover; import thaumcraft.common.items.armor.Hover;
import thaumicboots.api.IBoots;
@Interface(iface = "thaumicboots.api.IBoots", modid = "thaumicboots")
public class ItemElectricBootsTraveller extends ItemArmor public class ItemElectricBootsTraveller extends ItemArmor
implements IRunicArmor, IElectricItem, IVisDiscountGear, IMetalArmor, ISpecialArmor { implements IRunicArmor, IElectricItem, IVisDiscountGear, IMetalArmor, ISpecialArmor, IBoots {
public int maxCharge = 100000; public int maxCharge = 100000;
public int energyPerDamage = 1000; public int energyPerDamage = 1000;
@@ -121,15 +125,15 @@ public class ItemElectricBootsTraveller extends ItemArmor
@Override @Override
public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) { public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) {
if (!player.capabilities.isFlying && (player.moveForward != 0.0F || player.moveStrafing != 0.0F)) { if (player.moveForward != 0.0F || player.moveStrafing != 0.0F) {
if (player.worldObj.isRemote && !player.isSneaking()) { if (player.worldObj.isRemote && !player.isSneaking()) {
if (!Thaumcraft.instance.entityEventHandler.prevStep.containsKey(player.getEntityId())) { if (!Thaumcraft.instance.entityEventHandler.prevStep.containsKey(player.getEntityId())) {
Thaumcraft.instance.entityEventHandler.prevStep.put(player.getEntityId(), player.stepHeight); Thaumcraft.instance.entityEventHandler.prevStep.put(player.getEntityId(), player.stepHeight);
} }
player.stepHeight = 1.0F; player.stepHeight = 1.0F;
} }
float speedMod = (float) getSpeedModifier(itemStack);
if (player.onGround) { if (player.onGround || player.isOnLadder() || player.capabilities.isFlying) {
float bonus = speedBonus; float bonus = speedBonus;
if (player.isInWater()) { if (player.isInWater()) {
bonus /= 4.0F; bonus /= 4.0F;
@@ -138,29 +142,45 @@ public class ItemElectricBootsTraveller extends ItemArmor
if (player.isSneaking()) { if (player.isSneaking()) {
bonus /= 2.0F; bonus /= 2.0F;
} }
bonus *= speedMod;
player.moveFlying(player.moveStrafing, player.moveForward, bonus); if (EMT.isBootsActive) {
applyOmniState(player, bonus, itemStack);
} else {
player.moveFlying(0.0F, player.moveForward, bonus);
}
} else if (Hover.getHover(player.getEntityId())) { } else if (Hover.getHover(player.getEntityId())) {
// Base ItemBootsTraveller jumpBonus equals to jumpBonus of Electric Boots, // Base ItemBootsTraveller jumpBonus equals to jumpBonus of Electric Boots,
// so any other boots factor can be calculated via proportion method // so any other boots factor can be calculated via proportion method
player.jumpMovementFactor = 0.03F player.jumpMovementFactor = 0.03F
/ ((ItemElectricBootsTraveller) EMTItems.electricBootsTraveller).jumpBonus / ((ItemElectricBootsTraveller) EMTItems.electricBootsTraveller).jumpBonus
* jumpBonus; * jumpBonus
* speedMod;
} else { } else {
player.jumpMovementFactor = 0.05F player.jumpMovementFactor = 0.05F
/ ((ItemElectricBootsTraveller) EMTItems.electricBootsTraveller).jumpBonus / ((ItemElectricBootsTraveller) EMTItems.electricBootsTraveller).jumpBonus
* jumpBonus; * jumpBonus
* speedMod;
} }
} }
} }
@Optional.Method(modid = "thaumicboots")
public void applyOmniState(EntityPlayer player, float bonus, ItemStack itemStack) {
if (player.moveStrafing != 0.0 && itemStack.stackTagCompound.getBoolean("omni")) {
player.moveFlying(player.moveStrafing, 0.0F, bonus);
} else if (player.moveForward != 0.0) {
player.moveFlying(0.0F, player.moveForward, bonus);
}
}
@SubscribeEvent @SubscribeEvent
public void onPlayerJump(LivingEvent.LivingJumpEvent event) { public void onPlayerJump(LivingEvent.LivingJumpEvent event) {
if (event.entityLiving instanceof EntityPlayer) { if (event.entityLiving instanceof EntityPlayer) {
EntityPlayer player = (EntityPlayer) event.entityLiving; EntityPlayer player = (EntityPlayer) event.entityLiving;
boolean hasArmor = player.getCurrentArmor(0) != null && player.getCurrentArmor(0).getItem() == this; ItemStack boots = player.getCurrentArmor(0);
boolean hasArmor = boots != null && boots.getItem() == this;
if (hasArmor) player.motionY += jumpBonus; if (hasArmor) player.motionY += jumpBonus * (float) getJumpModifier(boots);
} }
} }
@@ -276,4 +296,19 @@ public class ItemElectricBootsTraveller extends ItemArmor
public int getRunicCharge(ItemStack itemStack) { public int getRunicCharge(ItemStack itemStack) {
return 0; return 0;
} }
// Avoid NSM Exception when ThaumicBoots is not present.
public double getSpeedModifier(ItemStack stack) {
if (stack.stackTagCompound != null) {
return stack.stackTagCompound.getDouble("speed");
}
return 1.0;
}
public double getJumpModifier(ItemStack stack) {
if (stack.stackTagCompound != null) {
return stack.stackTagCompound.getDouble("jump");
}
return 1.0;
}
} }
@@ -390,22 +390,23 @@ public class ItemInfusedQuantumChestplate extends ItemArmorElectric implements I
@Override @Override
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
public ModelBiped getArmorModel(EntityLivingBase entity, ItemStack stack, int armorSlot) { public ModelBiped getArmorModel(EntityLivingBase entity, ItemStack stack, int armorSlot) {
try { if (entity instanceof EntityPlayer && stack != null && stack.stackTagCompound != null) {
if (entity instanceof EntityPlayer) { byte wing = stack.stackTagCompound.getByte("wing");
byte wing = stack.stackTagCompound.getByte("wing"); if (wing == JETPACK) {
if (wing == JETPACK) { ModelSpecialArmor.getInstance().type = 1;
ModelSpecialArmor mbm = new ModelSpecialArmor(1, 1); } else if (wing != 0) {
return mbm; ModelSpecialArmor.getInstance().type = 2;
} else if (wing != 0) { if (stack.stackTagCompound.hasKey("isJumping")) {
ModelSpecialArmor mbm = new ModelSpecialArmor(1, 2); ModelSpecialArmor.getInstance().isJumping = stack.stackTagCompound.getBoolean("isJumping");
mbm.isJumping = stack.stackTagCompound.getBoolean("isJumping");
return mbm;
} }
} else {
ModelSpecialArmor.getInstance().type = 0;
} }
} catch (NullPointerException e) { } else {
new ModelSpecialArmor(1, 0); ModelSpecialArmor.getInstance().type = 0;
} }
return new ModelSpecialArmor(1, 0);
return ModelSpecialArmor.getInstance();
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@@ -51,16 +51,13 @@ public class ItemFeatherWing extends ItemArmor implements IRunicArmor {
@Override @Override
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
public ModelBiped getArmorModel(EntityLivingBase entity, ItemStack stack, int armorSlot) { public ModelBiped getArmorModel(EntityLivingBase entity, ItemStack stack, int armorSlot) {
try { if (entity instanceof EntityPlayer && stack != null
if (entity instanceof EntityPlayer) { && stack.stackTagCompound != null
ModelWings mw = new ModelWings(); && stack.stackTagCompound.hasKey("isJumping")) {
mw.isJumping = stack.stackTagCompound.getBoolean("isJumping"); ModelWings.getInstance().isJumping = stack.stackTagCompound.getBoolean("isJumping");
return mw;
}
} catch (NullPointerException e) {
return new ModelWings();
} }
return new ModelWings();
return ModelWings.getInstance();
} }
@Override @Override
@@ -72,12 +69,12 @@ public class ItemFeatherWing extends ItemArmor implements IRunicArmor {
int amount) { int amount) {
NBTTagCompound nbtData = StackUtil.getOrCreateNbtData(stack); NBTTagCompound nbtData = StackUtil.getOrCreateNbtData(stack);
boolean isJmuping = nbtData.getBoolean("isJumping"); boolean isJumping = nbtData.getBoolean("isJumping");
boolean isHolding = nbtData.getBoolean("isHolding"); boolean isHolding = nbtData.getBoolean("isHolding");
nbtData.setBoolean("isJumping", IC2.keyboard.isJumpKeyDown(player)); nbtData.setBoolean("isJumping", IC2.keyboard.isJumpKeyDown(player));
if (isJmuping) { if (isJumping) {
byte f = nbtData.getByte("f"); byte f = nbtData.getByte("f");
nbtData.setBoolean("isHolding", true); nbtData.setBoolean("isHolding", true);
if (IC2.keyboard.isSneakKeyDown(player)) nbtData.setByte("f", (byte) (0)); if (IC2.keyboard.isSneakKeyDown(player)) nbtData.setByte("f", (byte) (0));
@@ -108,7 +105,7 @@ public class ItemFeatherWing extends ItemArmor implements IRunicArmor {
nbtData.setByte("f", (byte) 0); nbtData.setByte("f", (byte) 0);
} }
if (isJmuping && !player.onGround && player.motionY < 0) { if (isJumping && !player.onGround && player.motionY < 0) {
player.motionY *= f1; player.motionY *= f1;
} }