mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-21 20:42:12 +00:00
- Removing setVelocity
This commit is contained in:
1 parent
fca75ef4af
commit
b681d6a8ae
3 files changed
+9
-6
No files matched your search
@@ -182,7 +182,9 @@ public class TileAuraPylon extends SynchronizedTileEntity implements IAspectCont
|
||||
|
||||
EntityPermNoClipItem item = new EntityPermNoClipItem(entity.worldObj, xCoord + 0.5F, yC + 0.3F, zCoord + 0.5F, crystalEssentiaStack, xCoord, yCoord, zCoord);
|
||||
entity.worldObj.spawnEntityInWorld(item);
|
||||
item.setVelocity(0, 0, 0);
|
||||
item.motionX = 0;
|
||||
item.motionY = 0;
|
||||
item.motionZ = 0;
|
||||
item.hoverStart = entity.hoverStart;
|
||||
item.age = entity.age;
|
||||
item.noClip = true;
|
||||
|
||||
@@ -62,7 +62,9 @@ public class EntityPermNoClipItem extends EntityPermanentItem {
|
||||
public void onUpdate() {
|
||||
noClip = true;
|
||||
super.onUpdate();
|
||||
setVelocity(0, 0, 0);
|
||||
motionX = 0;
|
||||
motionY = 0;
|
||||
motionZ = 0;
|
||||
if (getDataWatcher().getWatchedObject(ModConfig.entityNoClipItemDatawatcherFixedId).getObject() == null)
|
||||
return;
|
||||
|
||||
|
||||
@@ -15,10 +15,9 @@ import java.util.Random;
|
||||
public class ItemUtils {
|
||||
|
||||
public static void applyRandomDropOffset(EntityItem item, Random rand) {
|
||||
double xs = rand.nextFloat() * 0.7F - 0.35D;
|
||||
double ys = rand.nextFloat() * 0.7F - 0.35D;
|
||||
double zs = rand.nextFloat() * 0.7F - 0.35D;
|
||||
item.setVelocity(xs, ys, zs);
|
||||
item.motionX = rand.nextFloat() * 0.7F - 0.35D;
|
||||
item.motionY = rand.nextFloat() * 0.7F - 0.35D;
|
||||
item.motionZ = rand.nextFloat() * 0.7F - 0.35D;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user