mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-09-23 11:06:34 +00:00
build fixes
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
#include "../../Minecraft.Client/Player/LocalPlayer.h"
|
||||
#include "../../Minecraft.Client/Player/ServerPlayer.h"
|
||||
#include "../../Minecraft.Client/Network/PlayerConnection.h"
|
||||
#include "../Network/ChatPacket.h"
|
||||
#include "../Network/Packets/ChatPacket.h"
|
||||
#include "../Util/SoundTypes.h"
|
||||
|
||||
BucketItem::BucketItem(int id, int content) : Item(id) {
|
||||
|
||||
@@ -325,12 +325,12 @@ void PotionItem::appendHoverText(std::shared_ptr<ItemInstance> itemInstance,
|
||||
}
|
||||
}
|
||||
|
||||
bool PotionItem::isFoistd::l(std::shared_ptr<ItemInstance> itemInstance) {
|
||||
bool PotionItem::isFoil(std::shared_ptr<ItemInstance> itemInstance) {
|
||||
std::vector<MobEffectInstance*>* mobEffects = getMobEffects(itemInstance);
|
||||
return mobEffects != NULL && !mobEffects->empty();
|
||||
}
|
||||
|
||||
unsigned int PotionItem::getUseDescriptionIstd::d(
|
||||
unsigned int PotionItem::getUseDescriptionId(
|
||||
std::shared_ptr<ItemInstance> instance) {
|
||||
int brew = instance->getAuxValue();
|
||||
if (brew == 0)
|
||||
|
||||
@@ -306,7 +306,7 @@ void OldChunkStorage::save(LevelChunk* lc, Level* level,
|
||||
std::vector<TickNextTickData>* ticksInChunk =
|
||||
level->fetchTicksInChunk(lc, false);
|
||||
if (ticksInChunk != NULL) {
|
||||
int64_t levelTime = level->getTime();
|
||||
int64_t levelTime = level->getGameTime();
|
||||
|
||||
ListTag<CompoundTag>* tickTags = new ListTag<CompoundTag>();
|
||||
for (int i = 0; i < ticksInChunk->size(); i++) {
|
||||
@@ -405,7 +405,7 @@ void OldChunkStorage::save(LevelChunk* lc, Level* level, CompoundTag* tag) {
|
||||
std::vector<TickNextTickData>* ticksInChunk =
|
||||
level->fetchTicksInChunk(lc, false);
|
||||
if (ticksInChunk != NULL) {
|
||||
int64_t levelTime = level->getTime();
|
||||
int64_t levelTime = level->getGameTime();
|
||||
|
||||
ListTag<CompoundTag>* tickTags = new ListTag<CompoundTag>();
|
||||
for (int i = 0; i < ticksInChunk->size(); i++) {
|
||||
|
||||
@@ -122,7 +122,7 @@ const ItemInstance* ArmorDyeRecipe::getResultItem() { return NULL; }
|
||||
const int ArmorDyeRecipe::getGroup() { return ShapedRecipy::eGroupType_Armour; }
|
||||
|
||||
// 4J-PB
|
||||
bool ArmorDyeRecipe::collectRequirements(int iRecipe) { return false; }
|
||||
bool ArmorDyeRecipe::requiresRecipe(int iRecipe) { return false; }
|
||||
|
||||
void ArmorDyeRecipe::collectRequirements(INGREDIENTS_REQUIRED* pIngReq) {
|
||||
// int iCount=0;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "../Platform/stdafx.h"
|
||||
#include "net.minecraft.world.item.h"
|
||||
#include "../Headers/net.minecraft.world.item.h"
|
||||
#include "../Headers/net.minecraft.world.level.tile.h"
|
||||
#include "Recipy.h"
|
||||
#include "Recipes.h"
|
||||
|
||||
@@ -76,12 +76,6 @@ Achievement::Achievement(int id, const std::wstring& name, int x, int y,
|
||||
y(y),
|
||||
prerequisite(prerequisite) {}
|
||||
|
||||
/**
|
||||
* @brief Returns whether the Achivement is golden
|
||||
* @return boolean
|
||||
*/
|
||||
bool Achievement::isGolden() { return isGoldenVar; }
|
||||
|
||||
int Achievement::getAchievementID() {
|
||||
return id - Achievements::ACHIEVEMENT_OFFSET;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user