Skip to content

Commit

Permalink
162v3
Browse files Browse the repository at this point in the history
  • Loading branch information
is04 committed Jul 12, 2020
1 parent 95e454c commit 386e669
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 69 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ DragonMounts のエンダードラゴンに、littleMaidMob のメイドさん
- MinecraftForge 1.6.2
- YMTLib 162v2
- MMM 氏製作の littleMaidMob 1.6.2-1
- BarracudaATA 氏製作の dragonmount_r33_mc1.6.x (Forge版)
- BarracudaATA 氏製作の dragonmount_r36_mc1.6.x (Forge版)


## 導入
Expand Down Expand Up @@ -69,6 +69,7 @@ limitations under the License.

## History

- 162v3: DragonMounts のバージョンアップ(dragonmount_r34_mc1.6.x以降)に対応、砂糖に反応しない時はワールド読み込みなおしてみてください。
- 162v2: DragonMounts のバージョンアップ(dragonmount_r32_mc1.6.x以降)に対応。
- 162v1: Minecraft1.6.2 対応。
- 152v2: LittleMaidMob のバージョンアップ(1.5.2-4)に対応。
Expand Down
Binary file removed mod/ymt/lmd/DragonMaidEggBlock.class
Binary file not shown.
46 changes: 0 additions & 46 deletions mod/ymt/lmd/DragonMaidEggBlock.java

This file was deleted.

Binary file modified mod/ymt/lmd/LittleMaidDragonCore.class
Binary file not shown.
21 changes: 0 additions & 21 deletions mod/ymt/lmd/LittleMaidDragonCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import java.util.HashSet;
import mod.ymt.cmn.NekonoteCore;
import mod.ymt.cmn.Reflection;
import mod.ymt.cmn.Utils;
import net.minecraft.src.BaseMod;
import net.minecraft.src.Block;
Expand All @@ -42,20 +41,9 @@ public BaseMod getBaseMod() {

@Override
public void init() {
int dragonEggBlockId = Block.dragonEgg.blockID;
Block oldEgg = Block.blocksList[dragonEggBlockId];
// Á‹Ž
Block.blocksList[dragonEggBlockId] = null;
Item.itemsList[dragonEggBlockId] = null;
EntityEggInfo eggInfo = (EntityEggInfo) EntityList.entityEggs.remove(getDragonMountEntityId());

// どらごん娘ブロック作成
Block newEggBlock = new DragonMaidEggBlock(dragonEggBlockId);
ModLoader.registerBlock(newEggBlock);
replaceEggBlock(newEggBlock);
// 各種設定
Utils.addName(newEggBlock, "DragonEgg", "どらごんのたまご");

int egg1 = eggInfo != null ? eggInfo.primaryColor : 0;
int egg2 = eggInfo != null ? eggInfo.secondaryColor : 0xcc00ff;
int dragonId = Utils.getUnusedEntityID();
Expand Down Expand Up @@ -101,15 +89,6 @@ private int getDragonMountEntityId() {
return -1;
}

private void replaceEggBlock(Block newBlock) {
try {
Reflection.replaceFieldValues(Block.class, null, Block.dragonEgg, newBlock);
}
catch (Exception ex) {
debugPrint(ex, "replaceFieldValues dragonEgg");
}
}

public static LittleMaidDragonCore getInstance() {
return instance;
}
Expand Down
Binary file modified mod_LittleMaidDragon.class
Binary file not shown.
2 changes: 1 addition & 1 deletion mod_LittleMaidDragon.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public String getPriorities() {

@Override
public String getVersion() {
return "162v2";
return "162v3";
}

@Override
Expand Down

0 comments on commit 386e669

Please sign in to comment.