Workaround for vines + axes.

This commit is contained in:
asofold 2013-01-27 06:58:12 +01:00
parent 342ef0f5a6
commit b02a57c09c

View File

@ -724,7 +724,7 @@ public class BlockProperties {
// Specialties:
if (toolProps.toolType == ToolType.SHEARS){
// (Note: shears are not in the block props, anywhere)
// Treat these extra (party experimental):
// Treat these extra (partly experimental):
if (blockId == Material.WEB.getId()){
duration = 400;
isValidTool = true;
@ -743,6 +743,11 @@ public class BlockProperties {
}
}
// (sword vs web already counted)
else if (blockId == Material.VINE.getId() && toolProps.toolType == ToolType.AXE){
isValidTool = true;
if (toolProps.materialBase == MaterialBase.WOOD || toolProps.materialBase == MaterialBase.STONE) duration = 100;
else duration = 0;
}
if (isValidTool || blockProps.tool.toolType == ToolType.NONE){
float mult = 1f;