mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-12-30 18:08:24 +01:00
Fixed farmland displaying in inventory rollbacks
This commit is contained in:
parent
45f9f4316e
commit
ddb804ce99
@ -266,6 +266,7 @@ public class LookupCommand {
|
||||
if (argAction.contains(4) && argAction.contains(11)) { // a:inventory
|
||||
argExclude.add(Material.FIRE);
|
||||
argExclude.add(Material.WATER);
|
||||
argExclude.add(Material.FARMLAND);
|
||||
argExcludeUsers.add("#hopper");
|
||||
}
|
||||
|
||||
|
@ -183,15 +183,11 @@ public class RollbackRestoreCommand {
|
||||
Chat.sendMessage(player, Color.DARK_AQUA + "CoreProtect " + Color.WHITE + "- " + Phrase.build(Phrase.MISSING_ACTION_USER));
|
||||
return;
|
||||
}
|
||||
if (!argExclude.contains(Material.FIRE)) {
|
||||
argExclude.add(Material.FIRE);
|
||||
}
|
||||
if (!argExclude.contains(Material.WATER)) {
|
||||
argExclude.add(Material.WATER);
|
||||
}
|
||||
if (!argExcludeUsers.contains("#hopper")) {
|
||||
argExcludeUsers.add("#hopper");
|
||||
}
|
||||
|
||||
argExclude.add(Material.FIRE);
|
||||
argExclude.add(Material.WATER);
|
||||
argExclude.add(Material.FARMLAND);
|
||||
argExcludeUsers.add("#hopper");
|
||||
}
|
||||
|
||||
if (g == 1 && (argUsers.size() > 0 || (argUsers.size() == 0 && argRadius != null))) {
|
||||
|
@ -1411,9 +1411,9 @@ public class Rollback extends Queue {
|
||||
|
||||
int excludeCount = 0;
|
||||
for (Object excludeTarget : excludeList) {
|
||||
// don't display that excluded water/fire in inventory rollbacks
|
||||
// don't display that excluded water/fire/farmland in inventory rollbacks
|
||||
if (actionList.contains(4) && actionList.contains(11)) {
|
||||
if (excludeTarget.equals(Material.FIRE) || excludeTarget.equals(Material.WATER)) {
|
||||
if (excludeTarget.equals(Material.FIRE) || excludeTarget.equals(Material.WATER) || excludeTarget.equals(Material.FARMLAND)) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user