Skip to content

Commit

Permalink
Transduplicators should be fast.
Browse files Browse the repository at this point in the history
  • Loading branch information
planetguy32 committed Jul 18, 2015
1 parent 7afeb3b commit e410fa4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public void updateEntity() {

if (worldObj.isRemote) { return; }

if (ticksExisted < RiMConfiguration.CarriageMotion.TeleportationDuration) { return; }
if (ticksExisted < getTeleportDuration()) { return; }

if (Source) {
try {
Expand All @@ -167,6 +167,10 @@ public void updateEntity() {

Release();
}

public int getTeleportDuration() {
return RiMConfiguration.CarriageMotion.TeleportationDuration;
}

@Override
public boolean ShouldCaptureEntity(Entity Entity) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package me.planetguy.remaininmotion.spectre;

import net.minecraft.entity.Entity;
import me.planetguy.remaininmotion.core.RiMConfiguration;
import me.planetguy.remaininmotion.util.position.BlockRecord;

public class TileEntityTransduplicativeSpectre extends TileEntityTeleportativeSpectre {
Expand Down Expand Up @@ -27,5 +29,9 @@ public void inverseShiftBlockPosition(BlockRecord Record) {
Record.Y -= ShiftY;
Record.Z -= ShiftZ;
}

public int getTeleportDuration() {
return 2;
}

}

0 comments on commit e410fa4

Please sign in to comment.