Browse Source

fix NPE, 0.3.1

master
asie 11 months ago
parent
commit
d35a7b04c8

+ 1
- 1
build.gradle View File

@@ -13,7 +13,7 @@ buildscript {
apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: 'net.minecrell.licenser'
version = "0.3.0"
version = "0.3.1"
group = "pl.asie.redstoneminus"
archivesBaseName = "RedstoneMinusRedstone"

+ 5
- 1
docs/changelog/0.3.1.txt View File

@@ -1,3 +1,7 @@
Additions:

* Option to disable the despawn protection for inductively charged items.
* Option to disable the despawn protection for inductively charged items.

Bugs fixed:

* NullPointerException in RedstoneMinusTransformer in some cases.

+ 4
- 0
src/main/java/pl/asie/redstoneminus/core/RedstoneMinusTransformer.java View File

@@ -55,6 +55,10 @@ public class RedstoneMinusTransformer implements IClassTransformer {

@Override
public byte[] transform(String name, String transformedName, byte[] basicClass) {
if (basicClass == null) {
return null;
}

if (transformedName.startsWith("pl.asie.redstoneminus")) {
return basicClass;
}

Loading…
Cancel
Save