mirror of
https://github.com/GTNewHorizons/Tainted-Magic.git
synced 2026-11-26 14:53:07 +00:00
Cleanup
This commit is contained in:
1 parent
c31c510b73
commit
76355e266e
40 files changed
+51
-58
No files matched your search
@@ -33,7 +33,7 @@ public class ItemFlyteCharm extends Item implements IWarpingGear, IRenderInvento
|
||||
|
||||
public ItemFlyteCharm ()
|
||||
{
|
||||
this.setCreativeTab(TaintedMagic.tabTaintedMagic);
|
||||
this.setCreativeTab(TaintedMagic.tabTM);
|
||||
this.setUnlocalizedName("ItemFlyteCharm");
|
||||
this.setMaxStackSize(1);
|
||||
this.setTextureName("taintedmagic:ItemFlyteCharm");
|
||||
@@ -76,8 +76,8 @@ public class ItemFlyteCharm extends Item implements IWarpingGear, IRenderInvento
|
||||
// Glide
|
||||
if (player.isSneaking() && !player.onGround && player.fallDistance > 0.5F)
|
||||
{
|
||||
player.motionY = -0.1D;
|
||||
double speed = 0.1D;
|
||||
player.motionY = -speed;
|
||||
double x = Math.cos(Math.toRadians(player.rotationYawHead + 90)) * speed;
|
||||
double z = Math.sin(Math.toRadians(player.rotationYawHead + 90)) * speed;
|
||||
player.motionX += x;
|
||||
|
||||
Reference in new issue
Block a user