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
2 changed files with 7 additions and 37 deletions

No files matched your search

+3 -3
View File
@@ -1,10 +1,10 @@
// Add your dependencies here
dependencies {
compileOnly 'com.github.GTNewHorizons:GT5-Unofficial:5.09.48.14: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:ModularUI:1.2.0:dev'
api ('com.github.GTNewHorizons:ThaumicBoots:1.3.5: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'
}
@@ -125,20 +125,6 @@ public class ItemElectricBootsTraveller extends ItemArmor
@Override
public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) {
if (getIntertialState(itemStack) && player.moveForward == 0
&& player.moveStrafing == 0
&& player.capabilities.isFlying) {
player.motionX *= 0.5;
player.motionZ *= 0.5;
}
boolean omniMode = false;
if (EMT.isBootsActive) {
omniMode = isOmniEnabled(itemStack);
if ((player.moveForward == 0F && player.moveStrafing == 0F && omniMode)
|| (player.moveForward <= 0F && !omniMode)) {
return;
}
}
if (player.moveForward != 0.0F || player.moveStrafing != 0.0F) {
if (player.worldObj.isRemote && !player.isSneaking()) {
if (!Thaumcraft.instance.entityEventHandler.prevStep.containsKey(player.getEntityId())) {
@@ -159,7 +145,7 @@ public class ItemElectricBootsTraveller extends ItemArmor
bonus *= speedMod;
if (EMT.isBootsActive) {
applyOmniState(player, bonus, itemStack);
} else if (player.moveForward > 0.0) {
} else {
player.moveFlying(0.0F, player.moveForward, bonus);
}
} else if (Hover.getHover(player.getEntityId())) {
@@ -180,11 +166,10 @@ public class ItemElectricBootsTraveller extends ItemArmor
@Optional.Method(modid = "thaumicboots")
public void applyOmniState(EntityPlayer player, float bonus, ItemStack itemStack) {
if (player.moveForward != 0.0) {
player.moveFlying(0.0F, player.moveForward, bonus);
}
if (player.moveStrafing != 0.0 && getOmniState(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);
}
}
@@ -326,19 +311,4 @@ public class ItemElectricBootsTraveller extends ItemArmor
}
return 1.0;
}
public boolean getOmniState(ItemStack stack) {
if (stack.stackTagCompound != null) {
return stack.stackTagCompound.getBoolean("omni");
}
return false;
}
public boolean getIntertialState(ItemStack stack) {
if (stack.stackTagCompound != null) {
return stack.stackTagCompound.getBoolean("inertiacanceling");
}
return false;
}
}