mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 04:09:40 +00:00
Move the drawspeed calculation to the tool building, so the saved values are the actual values instead of calculating them every time
This commit is contained in:
1 parent
db7e4196db
commit
ff7c6c17fc
5 files changed
+15
-21
No files matched your search
@@ -49,12 +49,6 @@ public class Crossbow extends ProjectileWeapon {
|
||||
return ItemStack.loadItemStackFromNBT(tags.getCompoundTag("LoadedItem"));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getWindupTime(ItemStack itemStack) {
|
||||
NBTTagCompound toolTag = itemStack.getTagCompound().getCompoundTag("InfiTool");
|
||||
return (int)((float)toolTag.getInteger("DrawSpeed") * 2.5f);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMinWindupProgress(ItemStack itemStack) {
|
||||
return 1.0f;
|
||||
|
||||
Reference in new issue
Block a user