Skip to content

Commit 79e4955

Browse files
committed
Fix a bunch of stuff
1 parent fa2c62e commit 79e4955

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>ADHDMC</groupId>
88
<artifactId>Scythe</artifactId>
9-
<version>3.0</version>
9+
<version>3.1</version>
1010
<packaging>jar</packaging>
1111

1212
<name>Scythe</name>

src/main/java/adhdmc/scythe/listeners/InteractListener.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ public void playerHarvest(PlayerInteractEvent event) {
5454
if (ConfigHandler.isRequireHoe() && !MaterialTags.HOES.isTagged(itemUsed.getType())){
5555
return;
5656
}
57-
if (clickedCrop.getMaximumAge() != clickedCrop.getAge()) {
57+
if ((clickedCrop.getMaximumAge() != clickedCrop.getAge()) && isRightClick) {
58+
return;
59+
}
60+
if ((clickedCrop.getMaximumAge() != clickedCrop.getAge()) && !isRightClick) {
5861
event.setCancelled(true);
5962
return;
6063
}

src/main/java/adhdmc/scythe/listeners/InteractListenerDependsCoreprotect.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ public void playerHarvestCoreProtect(PlayerInteractEvent event) {
6161
if (ConfigHandler.isRequireHoe() && !MaterialTags.HOES.isTagged(itemUsed.getType())){
6262
return;
6363
}
64-
if (clickedCrop.getMaximumAge() != clickedCrop.getAge()) {
64+
if ((clickedCrop.getMaximumAge() != clickedCrop.getAge()) && isRightClick) {
65+
return;
66+
}
67+
if ((clickedCrop.getMaximumAge() != clickedCrop.getAge()) && !isRightClick) {
6568
event.setCancelled(true);
6669
return;
6770
}

src/main/resources/config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#Scythe
22
require-hoe: false
33
right-click-to-harvest: true
4-
#
54
play-sounds: true
65
break-particles: true
76
#crops the plugin should work on

0 commit comments

Comments
 (0)