mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-18 09:51:17 +02:00
Workaround for vines + axes.
This commit is contained in:
parent
342ef0f5a6
commit
b02a57c09c
@ -724,7 +724,7 @@ public class BlockProperties {
|
|||||||
// Specialties:
|
// Specialties:
|
||||||
if (toolProps.toolType == ToolType.SHEARS){
|
if (toolProps.toolType == ToolType.SHEARS){
|
||||||
// (Note: shears are not in the block props, anywhere)
|
// (Note: shears are not in the block props, anywhere)
|
||||||
// Treat these extra (party experimental):
|
// Treat these extra (partly experimental):
|
||||||
if (blockId == Material.WEB.getId()){
|
if (blockId == Material.WEB.getId()){
|
||||||
duration = 400;
|
duration = 400;
|
||||||
isValidTool = true;
|
isValidTool = true;
|
||||||
@ -743,6 +743,11 @@ public class BlockProperties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// (sword vs web already counted)
|
// (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){
|
if (isValidTool || blockProps.tool.toolType == ToolType.NONE){
|
||||||
float mult = 1f;
|
float mult = 1f;
|
||||||
|
Loading…
Reference in New Issue
Block a user