mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-06-03 16:23:05 +00:00
fix(jui): cast the tileEntity in openTextEdit() as a sign
This commit is contained in:
parent
135b403af1
commit
98b9cf6147
|
|
@ -549,8 +549,10 @@ void LocalPlayer::closeContainer() {
|
|||
|
||||
void LocalPlayer::openTextEdit(std::shared_ptr<TileEntity> tileEntity) {
|
||||
#ifdef ENABLE_JAVA_GUIS
|
||||
minecraft->setScreen(new TextEditScreen(sign));
|
||||
bool success = true;
|
||||
if (tileEntity->GetType() == eTYPE_SIGNTILEENTITY) {
|
||||
minecraft->setScreen(new TextEditScreen(std::dynamic_pointer_cast<SignTileEntity>(tileEntity)));
|
||||
bool success = true;
|
||||
}
|
||||
#else
|
||||
bool success;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue