mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
parent
3e60dfcf98
commit
e8577e4a9e
@ -1,3 +1,6 @@
|
|||||||
|
Version 2.1.187
|
||||||
|
Fixed a ClassCastException error involving Rupture
|
||||||
|
|
||||||
Version 2.1.186
|
Version 2.1.186
|
||||||
Rupture has been reworked to solve a few outstanding issues (see notes)
|
Rupture has been reworked to solve a few outstanding issues (see notes)
|
||||||
Fixed an exploit involving enchantments (thanks TheBusyBiscuit)
|
Fixed an exploit involving enchantments (thanks TheBusyBiscuit)
|
||||||
|
2
pom.xml
2
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.186</version>
|
<version>2.1.187-SNAPSHOT</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>
|
||||||
|
@ -1081,7 +1081,7 @@ public class McMMOPlayer implements Identified {
|
|||||||
public void logout(boolean syncSave) {
|
public void logout(boolean syncSave) {
|
||||||
Player thisPlayer = getPlayer();
|
Player thisPlayer = getPlayer();
|
||||||
if(getPlayer().hasMetadata(mcMMO.RUPTURE_META_KEY)) {
|
if(getPlayer().hasMetadata(mcMMO.RUPTURE_META_KEY)) {
|
||||||
RuptureTaskMeta ruptureTaskMeta = (RuptureTaskMeta) getPlayer().getMetadata(mcMMO.RUPTURE_META_KEY);
|
RuptureTaskMeta ruptureTaskMeta = (RuptureTaskMeta) getPlayer().getMetadata(mcMMO.RUPTURE_META_KEY).get(0);
|
||||||
|
|
||||||
//Punish a logout
|
//Punish a logout
|
||||||
ruptureTaskMeta.getRuptureTimerTask().explode();
|
ruptureTaskMeta.getRuptureTimerTask().explode();
|
||||||
|
@ -65,7 +65,7 @@ public class SwordsManager extends SkillManager {
|
|||||||
*/
|
*/
|
||||||
public void processRupture(@NotNull LivingEntity target) {
|
public void processRupture(@NotNull LivingEntity target) {
|
||||||
if(target.hasMetadata(mcMMO.RUPTURE_META_KEY)) {
|
if(target.hasMetadata(mcMMO.RUPTURE_META_KEY)) {
|
||||||
RuptureTaskMeta ruptureTaskMeta = (RuptureTaskMeta) target.getMetadata(mcMMO.RUPTURE_META_KEY);
|
RuptureTaskMeta ruptureTaskMeta = (RuptureTaskMeta) target.getMetadata(mcMMO.RUPTURE_META_KEY).get(0);
|
||||||
|
|
||||||
if(mmoPlayer.isDebugMode()) {
|
if(mmoPlayer.isDebugMode()) {
|
||||||
mmoPlayer.getPlayer().sendMessage("Rupture task ongoing for target " + target.toString());
|
mmoPlayer.getPlayer().sendMessage("Rupture task ongoing for target " + target.toString());
|
||||||
|
Loading…
Reference in New Issue
Block a user