nossr50 4 years ago
parent
commit
b79d452a6d
3 changed files with 5 additions and 2 deletions
  1. 1 0
      Changelog.txt
  2. 1 1
      pom.xml
  3. 3 1
      src/main/java/com/gmail/nossr50/listeners/EntityListener.java

+ 1 - 0
Changelog.txt

@@ -1,4 +1,5 @@
 Version 2.1.200
 Version 2.1.200
+    Fixed a major 1.17 exploit
     Dodge will no longer trigger while blocking
     Dodge will no longer trigger while blocking
     Action Bar messages can now be disabled (thanks TheBusyBiscuit)
     Action Bar messages can now be disabled (thanks TheBusyBiscuit)
     mcMMO is better at MC version parsing now (thanks stepech & TheBusyBiscuit)
     mcMMO is better at MC version parsing now (thanks stepech & TheBusyBiscuit)

+ 1 - 1
pom.xml

@@ -2,7 +2,7 @@
     <modelVersion>4.0.0</modelVersion>
     <modelVersion>4.0.0</modelVersion>
     <groupId>com.gmail.nossr50.mcMMO</groupId>
     <groupId>com.gmail.nossr50.mcMMO</groupId>
     <artifactId>mcMMO</artifactId>
     <artifactId>mcMMO</artifactId>
-    <version>2.1.200-SNAPSHOT</version>
+    <version>2.1.200</version>
     <name>mcMMO</name>
     <name>mcMMO</name>
     <url>https://github.com/mcMMO-Dev/mcMMO</url>
     <url>https://github.com/mcMMO-Dev/mcMMO</url>
     <scm>
     <scm>

+ 3 - 1
src/main/java/com/gmail/nossr50/listeners/EntityListener.java

@@ -250,9 +250,11 @@ public class EntityListener implements Listener {
             else if (isTracked) {
             else if (isTracked) {
                 mcMMO.getPlaceStore().setTrue(block);
                 mcMMO.getPlaceStore().setTrue(block);
             }
             }
-        } else if ((block.getType() == Material.REDSTONE_ORE)) {
+        } else if ((block.getType() == Material.REDSTONE_ORE || block.getType().getKey().getKey().equalsIgnoreCase("deepslate_redstone_ore"))) {
+            //Redstone ore fire this event and should be ignored
         }
         }
         else {
         else {
+
             if (mcMMO.getPlaceStore().isTrue(block)) {
             if (mcMMO.getPlaceStore().isTrue(block)) {
                 mcMMO.getPlaceStore().setFalse(block);
                 mcMMO.getPlaceStore().setFalse(block);
             }
             }